res_comp: resilience components

Description Usage Arguments Value Examples

View source: R/rescomp.R

Description

The function calculates resilience components on a data.frame of tree-ring series after Lloret et al. (2011), similar to function res.comp. This function also accepts pre- and post- disturbance periods of 1 in contrast to the above mentioned function.

Usage

1
res_comp(rwl, nyrs_pre = 4, nyrs_post = 4)

Arguments

rwl

a data frame of tree ring measures.

nyrs_pre

number of years defining the pre disturbance performance.

nyrs_post

number of years defining the post disturbance performance.

Value

a list of data frames with the members resistance, recovery, resilience and rel_resilience. Each data frame consists of the same series as supplied with rwl row numbers reduced by nyrs_pre and nyrs_post.

Examples

1
2
3
library('dplR')
data('ca533')
res_comp(ca533)

konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.