Skip to contents

Calculate Quality in Section

Usage

calculate_quality(
  df,
  input,
  flows,
  quality = NULL,
  config,
  result_type = "list",
  debug = FALSE
)

Arguments

df

data frame with model as retrieved by get_flowpath_table

input

model input data as retrieved by prepare_input

flows

flows as retrievef by calculate flows

quality

list with sublist "conc" and "load" for all sections (default: NULL)

config

list with config as imported with config_read

result_type

define how the results should be returned. either a tibble with loads and concentrations in long format.(if result_type == "tibble"), a list with concentrations in wide format (result_type == "list") or a list with loads in wide format (result_type == "load")

debug

print debug messages (default: FALSE)

Value

tibble with Urban Water Model results with loads and concentrations (if result_type == "raw"), a list with concentrations (result_type == "conc" or "load") or a list with loads, default: "list"