View source: R/Functions_Supporting.R
determine_used_soillayers | R Documentation |
Determine positions of soil layers within a zone
determine_used_soillayers(
soil_depths_cm,
used_depth_range_cm = NULL,
n_slyrs_has = NULL
)
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. |
n_slyrs_has |
An integer value. The number of simulated soil layers
(optional). The code throws an error if there are fewer soil layers
than selected by |
An integer vector.
determine_used_soillayers(c(5, 10, 30, 50))
determine_used_soillayers(c(5, 10, 30, 50), c(0, 100))
determine_used_soillayers(c(5, 10, 30, 50), c(0, 40))
determine_used_soillayers(c(5, 10, 30, 50), c(20, 40))
determine_used_soillayers(c(5, 10, 30, 50), c(20, 50))
determine_used_soillayers(c(5, 10, 30, 50), c(20, 30), 3)
## Not run:
determine_used_soillayers(c(5, 10, 30, 50), c(20, 50), 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.