View source: R/SoilMoistureTemperatureRegimes.R
calc_RRs_Maestas2016 | R Documentation |
Determine resilience & resistance classes (sensu Maestas et al. 2016) based on soil moisture and soil temperature regimes
calc_RRs_Maestas2016(Tregime, Sregime)
Tregime |
A named numeric vector. The soil temperature regime
“STR” element of the return object of
|
Sregime |
A named numeric vector. The soil moisture regime
“SMR” element of the return object of
|
A named numeric vector of 0s
and 1s
indicating
the matching resilience and resistance class. Note: All elements may be
0 if the input soil moisture/temperature regimes are not covered by
Maestas et al. 2016.
Maestas, J.D., Campbell, S.B., Chambers, J.C., Pellant, M. & Miller, R.F. (2016). Tapping Soil Survey Information for Rapid Assessment of Sagebrush Ecosystem Resilience and Resistance. Rangelands, 38, 120-128.
# Calculate soil moisture and soil temperature regimes
sw_in <- rSOILWAT2::sw_exampleData
sw_out <- rSOILWAT2::sw_exec(inputData = sw_in)
SMTR <- calc_SMTRs(sim_in = sw_in, sim_out = sw_out)
# Determine average across years and set aggregation agreement level
Tregime <- colMeans(SMTR[["STR"]]) >= 0.9
Sregime <- colMeans(SMTR[["SMR"]]) >= 0.9
# Calculate resilience and resistance categories
calc_RRs_Maestas2016(Tregime, Sregime)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.