Skip to content
Prev 241987 / 398500 Next

Parameterising apply To Compute Rolling Average of Columns in a matrix

On Thu, 18 Nov 2010, Paolo Rossi wrote:
RTFM.  Thats what the ... option of apply() is for.

apply(a, 2, RollingAverage, RollingObs=7)

Ray