Description Usage Arguments Value Examples
Detect peaks by identifying local maxima/minima in a rolling window.
1 | detect.peak(x, window.size, what = "maxi")
|
x |
numerical vector |
window.size |
integer, width of rolling window. |
what |
character indicating whether maxima or minima should be looked for. One of c('maxi', 'mini'). |
A logical vector. TRUE indicates a local maxima/minima. NAs are padded at the extremeties to keep same length as x.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.