powered by
Take the rolling mean of `x` over `n` elements
rollmean(x, n)
data vector
span of rolling mean
Rolling mean of the input
# NOT RUN { rollmean(c(1,2,3),2) ## NA, 1.5, 2.5 # }
Run the code above in your browser using DataLab