
Validate nutrient concentrations
Source:R/11.2-parameter-validators.R
validate_nutrient_concentrations.RdValidate nutrient concentrations
Value
A named list with three elements: valid (logical),
errors (character vector), and warnings (character
vector). warnings are issued when N or P concentrations fall
outside the typical range for the specified organism_type or when
the N:P mass ratio is outside 2–20.
Examples
validate_nutrient_concentrations(list(
nitrogen = 0.030,
phosphorus = 0.004
))$valid
#> [1] TRUE