View source: R/MovingAverage.R
MovingAverage | R Documentation |
function to calculate Moving Average of a series
MovingAverage(y, W)
y |
a numeric vector, with respiratory data for a regularly spaced time series. |
W |
a Positive integer, the windows of Moving Average. |
A new numeric vector after calculate the moving average.
Zhang T, Dong X, Chen C, Wang D, Zhang XD. RespirAnalyzer: an R package for continuous monitoring of respiratory signals.
data("TestData")
W <- 50
y <- MovingAverage(Data[,2],W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.