This function finds peaks in a time series of data, defined to be a local maxima where
m points on either side are smaller than the deemed peak
find_peaks(x, m = 3)
A numerical vector
The window that defines the local maximum (default = 3)
This function is written by Stasia Grinberg and is available at https://github.com/stas-g/findPeaks
A vector of indices where the peaks have been identified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.