Re: [R] Moving average in a data table

2011-06-25 Thread Gabor Grothendieck
On Sat, Jun 25, 2011 at 3:15 PM, Roman Naumenko wrote: > Hi, > > I'm trying to figure out common approach on calculating MA on a dataset that > contains column "time". > > After digging around, I believe functions rollmean and rollaply should be > used. > However I don't quite understand the requi

[R] Moving average in a data table

2011-06-25 Thread Roman Naumenko
Hi, I'm trying to figure out common approach on calculating MA on a dataset that contains column "time". After digging around, I believe functions rollmean and rollaply should be used. However I don't quite understand the requirements for the underlying data. Should it be zoo object type? Fo