View source: R/functions_phase.R
removeconsec
removes consecutive maxima or minima and keeps only
the higher or lower value, respectively. The function makes sure no two
maxima or minima appear consecutively. It is a helper function of
phase_stats
.
1 | removeconsec(df, remove, notremove, mode)
|
df |
input |
remove |
numeric, for which consecutive values are removed (i.e. maxima or minima). |
notremove |
numeric, for which consecutive values are not removed (i.e. maxima or minima). |
mode |
character, specifies whether consecutive maxima or minima
are removed. Can either be |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.