View source: R/sw_Vegetation.R
check_TranspirationRegions | R Documentation |
The transpiration regions are checked:
There is least one transpiration region
All transpiration regions include at least one soil layer
Transpiration regions are strictly increasing
Transpiration regions go no deeper than the most shallow rooting profile of any active vegetation type
check_TranspirationRegions(swInputData)
swInputData |
A rSOILWAT2 input object of class
|
A logical value.
sw_in <- rSOILWAT2::sw_exampleData
check_TranspirationRegions(sw_in) ## Expected: TRUE
# Make a mistake: set a transpiration region deeper than the rooting profile
swSite_TranspirationRegions(sw_in)[2, 2] <- 10
check_TranspirationRegions(sw_in) ## Expected: FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.