which.peaks {dSTEM} | R Documentation |
Find local maxima and local minima of data sequence
Description
Find local maxima and local minima of data sequence
Usage
which.peaks(x, partial = FALSE, decreasing = FALSE)
Arguments
x |
numerical vector contains local maxima (minima) |
partial |
logical value indicating if the two endpoints will be considered |
decreasing |
logical value indicating whether to find local minima |
Value
a vector of locations of local maxima or minima
Examples
a = 100:1
which.peaks(a*sin(a/3))
[Package dSTEM version 2.0-1 Index]