Learn R Programming

TRADER (version 1.2-6)

reduceByLB: 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)

Value

Return list of releases reduced by length and buffer.

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.

Author

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

Details

Check the reference.

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

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

reduceByLB(rna$releases,rna$all_releases)

Run the code above in your browser using DataLab