[R] Calculate a function repeatedly over sections of a ts object

Gabor Grothendieck ggrothendieck at gmail.com
Thu Jan 26 22:05:34 CET 2012


On Thu, Jan 26, 2012 at 4:00 PM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
> I'm not sure if it's easily doable with a ts class, but the rollapply
> function in the zoo package will do this easily. (Also, I find zoo to
> be a much more natural time-series workflow than ts so it might make
> the rest of your life easier as well)
>

rollapply does have ts and default methods in addition to a zoo method.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list