powered by
movingAverage(x, n, centered)
movingAverage(1:20, n=3, centered=FALSE)
Run the code above in your browser using DataLab