peakid | R Documentation |
Developed by William A. Huber
peakid(x, y, w = 1, ...)
x |
Vector of |
y |
Vector of |
w |
Window size for smoothing data |
... |
Additional arguments to be passed into LOESS function |
A vector listing the standard deviations of propagated errors
propagated on all X
values.
package dependencies: zoo 1.8.7
Huber, W.A., Data Smoothing and Peak Detection, Rpubs, Last accessed: December 8th, 2020. https://rpubs.com/mengxu/peak_detection
https://rpubs.com/mengxu/peak_detection
# Create dummy periodic data x <- seq(1, 100, 1) y <- sin((2 * pi * (seq(1, 100, 1) - 8 + 20 / 4)) / 20) # Run peakid function result <- peakid(x, y, w = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.