Calculate Quality in Section
Usage
calculate_quality(
df,
input,
shares_timeseries_wide = NULL,
flows,
quality = NULL,
config,
reverse_flow = FALSE,
result_type = "list",
debug = FALSE
)Arguments
- df
data frame with model as retrieved by
get_flowpath_table- input
model input data flows as retrieved by
prepare_inputand sublist "flows"shares timeseries in wide format, as retrieved by
prepare_inputand sublist "shares_timeseries" (default: NULL), only used if parameter "use_dynamic" is set to TRUE- flows
flows as retrieved by
calculate_flows- quality
list with sublist "conc" and "load" for all sections (default: NULL)
- config
list with config as imported with
config_read- reverse_flow
calculate reverse flow (default: FALSE)
- 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)