reduceByLB: Reduce releases by length and buffer.

View source: R/trader.R

reduceByLBR Documentation

Reduce releases by length and buffer.

Description

Reduce peaks of releases according length and buffer.

Usage

reduceByLB(releases, above, buffer = 2, type = 1, length = 2, val = NULL)

Arguments

releases

Peak of releases.

above

All releases above threshold.

buffer

Number of years determining how close to one another two releases can be.

type

If to return years of releases (type=1), values of releases (type=2) or values from val (type=3).

length

Determines how many years have to be given critera exceeded to be considered as release.

val

Additional source for returning if there are releases.

Details

Check the reference.

Value

Return list of releases reduced by length and buffer.

Note

Check the reference.

Author(s)

Pavel Fibich <pavel.fibich@prf.jcu.cz>, Jan Altman <altman.jan@gmail.com>, Tuomas Aakala <tuomas.aakala@helsinki.fi>, Jiri Dolezal <jiriddolezal@gmail.com>

References

Altman J, Fibich P, Dolezal J & Aakala T (2014) TRADER: a package for Tree Ring Analysis of Disturbance Events in R. Dendrochonologia 32: 107-112.

See Also

growthAveragingALL, boundaryLineALL, splechtnaALL

Examples

data(relData)
rna<-noblabrams(relData1,black=FALSE) # for Nowacki and Abrams 1997

reduceByLB(rna$releases,rna$all_releases)

pavel-fibich/TRADER documentation built on Feb. 12, 2024, 1:27 a.m.