detectExcursionCore.Rd
Detect excursion - core functionality
detectExcursionCore(
time,
vals,
event.yr,
event.window,
ref.window,
sig.num = 2,
n.consecutive = 2,
exc.type = "either",
min.vals = 8,
adjust.n.for.autocorrelation = FALSE,
min.ref.window.coverage.fraction = 0.5,
na.rm = TRUE
)
time vector of only the points in the window
value vector of only the points in the window
time at the center of the excursion window
width (in time units) of the excursion window
width (in time units) of the reference windows
how many standard deviations required outside the reference windows must be exceeded for this to be considered an excursion? (default = 2)
how many consecutive points are required for this to be considered an excursion? (default = 2)
Type of excursion to look for. "positive", "negative", "either" or "both" (default = "either")
Minimum effective sample size (adjusted by autocorrelation) required in reference and event windows (default = 4)
Adjust the min.vals check to account for autocorrelation?
reference windows must cover at least this fraction of the time.
Remove NAs? (default = TRUE)
a tibble of results