moving averages in R [duplicate]
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.
I've used the SMA function in the TTR package.
精彩评论