ts_peaks: Find Peaks or Wells

ts_peaksR Documentation

Find Peaks or Wells

Description

Find Peaks or Wells

Usage

ts_peaks(
  y,
  window = 3,
  includeWells = FALSE,
  minPeakDist = round(window/2),
  minPeakHeight = 0.2 * diff(range(y, na.rm = TRUE))
)

Arguments

y

A time series or numeric vector

window

Window in which to look for peaks or wells

includeWells

Find wells?

minPeakDist

Minimum distance between peaks or wells

minPeakHeight

Minimum height / depth for a peak / well

Value

Index with peak or well coordinates

Author(s)

Fred Hasselman

See Also

Other Time series operations: ts_center(), ts_changeindex(), ts_checkfix(), ts_detrend(), ts_diff(), ts_discrete(), ts_duration(), ts_embed(), ts_integrate(), ts_levels(), ts_permtest_block(), ts_permtest_transmat(), ts_rasterize(), ts_sd(), ts_slice(), ts_slopes(), ts_standardise(), ts_sumorder(), ts_symbolic(), ts_trimfill(), ts_windower()


FredHasselman/casnet documentation built on April 20, 2024, 3:05 p.m.