ts_peaks | R Documentation |
Find Peaks or Wells
ts_peaks(
y,
window = 3,
includeWells = FALSE,
minPeakDist = round(window/2),
minPeakHeight = 0.2 * diff(range(y, na.rm = TRUE))
)
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 |
Index with peak or well coordinates
Fred Hasselman
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.