reduceByLB: Reduce releases by length and buffer.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/trader.R

Description

Reduce peaks of releases according length and buffer.

Usage

1
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

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

reduceByLB(rna$releases,rna$all_releases)

Example output

[1] "## Nowacki & Abrams analysis!"
[1] "Criteria 0.25 Criteria2 0.5 m1 10 m2 10 Buffer 2 Length 2"
[1] "Total number of releases >= 0.25 & < 0.5 is 13"
inyears
1888 1899 1920 1936 1938 1971 1978 1979 1980 1986 1995 
   1    1    1    1    2    1    1    1    2    1    1 
[1] "Total number of releases >= 0.5 is 30"
inyears
1895 1896 1899 1903 1927 1935 1936 1938 1939 1942 1947 1978 1984 1986 1988 1990 
   1    3    1    1    1    5    5    3    1    1    1    2    1    1    1    1 
1993 
   1 
[[1]]
[1]    0 1895 1935

[[2]]
[1]    0 1935 1995

[[3]]
[1]    0 1978

[[4]]
[1]    0 1971

[[5]]
[1]    0 1896 1899 1938

[[6]]
[1]    0 1920 1927 1935 1938 1978

[[7]]
[1]    0 1936 1939 1978 1980

[[8]]
[1] 0

[[9]]
[1]    0 1903 1936 1942 1947

[[10]]
[1]    0 1936

[[11]]
[1]    0 1936 1938

[[12]]
[1]    0 1896 1899 1936 1979 1986 1988 1990 1993

[[13]]
[1]    0 1936 1938 1980 1984 1986

[[14]]
[1]    0 1888 1896 1935 1938

[[15]]
[1]    0 1935

TRADER documentation built on May 2, 2019, 9:02 a.m.