peakid {ShellChron} | R Documentation |
Function that identifies peaks in a dataset
Description
Developed by William A. Huber
Usage
peakid(x, y, w = 1, ...)
Arguments
x |
Vector of |
y |
Vector of |
w |
Window size for smoothing data |
... |
Additional arguments to be passed into LOESS function |
Value
A vector listing the standard deviations of propagated errors
propagated on all X
values.
References
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
See Also
https://rpubs.com/mengxu/peak_detection
Examples
# 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)
[Package ShellChron version 0.4.0 Index]