Compute the running mean of a vector
runMean(v, lags = 0, group = NULL, filter = NULL)
a numeric vector
an integer vector giving lag numbers
a factor or a list of factors defining groups of observations
a vector specifying a linear filter
# NOT RUN {
## Ten day "time series"
x <- rnorm(10)
## Running mean of lag 0, 1, and 2
runMean(x, 0:2)
# }
Run the code above in your browser using DataLab