find_peaks | R Documentation |
This function identifies peaks in a numeric vector by analyzing the shape of the curve.
find_peaks(x, m = 3)
x |
A numeric vector in which peaks will be identified. |
m |
An integer indicating the half-width of the neighborhood to consider when identifying peaks. A larger value of |
A numeric vector containing the indices of the identified peaks in the input vector x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.