For each parameter present in df, adds columns:
*_ok(logical),*_statusone of"ok","acima_do_maximo","abaixo_do_minimo",*__lim_minand*__lim_max(thresholds used),*__delta(difference to the relevant limit; >0 above max, <0 below min, 0 if ok).
Usage
conama_check(
df,
classe = "2",
environment = c("all", "lotic", "lentic", "intermediate")
)Arguments
- df
A tibble/data.frame with parameter columns (e.g., ph, turbidez, od, dbo).
- classe
Character class label (e.g., "especial", "1", "2", "3", "4").
- environment
Optional aquatic environment context:
"all"(default),"lotic"(rivers),"lentic"(lakes/reservoirs), or"intermediate". Used to select specific regulatory thresholds for total phosphorus.