I\'m trying to use R to calculate the moving average over a series of values in a matrix. The normal R mailing list search hasn\'t been very helpful though. There doesn\'t s
You may calculate the moving average of a vector x with a window width of k by:
x
k
apply(embed(x, k), 1, mean)