yryr: YrYr recovery function

Description Usage Arguments Value References Examples

View source: R/get_recovery_metrics.R

Description

Year on year average

Usage

1
yryr(ts, ys, tpert = 0, deltat = 5)

Arguments

ts

Vector containing the times (same size as ys)

ys

Vector containing the values (same size as ts)

tpert

Time of the perturbation. Default set to 0 yr

deltat

Reference recovery time (in years). Default set to 5 yr

Value

The YrYr parameter for the given time series

References

Frazier, R. J., Coops, N. C., Wulder, M. A., Hermosilla, T., & White, J. C. (2018). Analyzing spatial and temporal variability in short-term rates of post-fire vegetation return from Landsat time series. Remote Sensing of Environment, 205, 32–45. https://doi.org/10.1016/j.rse.2017.11.007

Examples

1
2
3
4
# Generate an example time series
ts <- seq(-2, 10, by = 0.1) # as a vector of times
ys <- 3 + 2 * ts # plus a vector of values
yryr(ts, ys)

RETURN-project/GEE.aux documentation built on Dec. 18, 2021, 8:46 a.m.