Locate the peaks in a numeric vector.
A vector whose peaks are to be located.
If TRUE, the vector is plotted and peaks are indicated with red triangles.
This function looks for peaks by finding elements whose value is greater than both the elements that surround it. If no peaks are found, a value of zero is returned.
A vector indicating the location (position in the vector) of peaks in the vector.
Santiago Barreda <email@example.com>
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.