calc_RRs_Maestas2016: Determine resilience & resistance classes (sensu Maestas et...

View source: R/SoilMoistureTemperatureRegimes.R

calc_RRs_Maestas2016R Documentation

Determine resilience & resistance classes (sensu Maestas et al. 2016) based on soil moisture and soil temperature regimes

Description

Determine resilience & resistance classes (sensu Maestas et al. 2016) based on soil moisture and soil temperature regimes

Usage

calc_RRs_Maestas2016(Tregime, Sregime)

Arguments

Tregime

A named numeric vector. The soil temperature regime “STR” element of the return object of calc_SMTRs.

Sregime

A named numeric vector. The soil moisture regime “SMR” element of the return object of calc_SMTRs.

Value

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.

References

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.

Examples

# 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)


DrylandEcology/rSW2funs documentation built on June 28, 2023, 2:51 a.m.