View source: R/Functions_Supporting.R
check_soillayer_availability | R Documentation |
Check whether soil layers are available in a specified zone
check_soillayer_availability(
soil_depths_cm,
used_depth_range_cm = NULL,
strict = TRUE,
type = c("warn", "error")
)
soil_depths_cm |
A numeric vector. The lower depth limits of soil layers in [cm]. |
used_depth_range_cm |
A numeric vector of length two. The upper and lower depth limit of the zone (depth range) to consider. |
strict |
A logical vector either of length one or equal to the
length of |
type |
A character string. If a value is not present, then either a warning is issued or an error. |
(Invisibly) a logical value indicating whether at least one
required value is missing (FALSE
) or all are present (TRUE
).
check_soillayer_availability(
c(5, 10, 30, 50), c(0, 40),
strict = TRUE,
type = "warn"
)
check_soillayer_availability(
c(5, 10, 30, 50), c(0, 40),
strict = c(TRUE, FALSE),
type = "warn"
)
check_soillayer_availability(
c(5, 10, 30, 50), c(20, 30, 40),
strict = TRUE,
type = "warn"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.