Possible Duplicate:
Calculating moving average in R
Is there a function to compute leading, lagging, central moving averages in R similar to matlab? I was trying to use the filter function but can't get my head around it.
Possible Duplicate:
Calculating moving average in R
Is there a function to compute leading, lagging, central moving averages in R similar to matlab? I was trying to use the filter function but can't get my head around it.