LocatePeaks | R Documentation |
Find the positions of local maxima or minima in a sequence.
LocatePeaks(x, minima = FALSE, partial = FALSE)
x |
numeric vector for which maxima (minima) shall be analysed. |
minima |
if |
partial |
if |
a numeric vector of the index positions of the maxima (minima).
Zhibing He, Dan Cheng
This function is adapted from the function which.peaks
in
the R package mSTEM
:
<https://cran.r-project.org/web/packages/mSTEM/index.html>
For the purpose of the prxytools package, the function and its function arguments have been renamed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.