[R] its filter

Gabor Grothendieck ggrothendieck at gmail.com
Fri Apr 29 20:08:49 CEST 2005


Try:

install.packages("zoo") # rollmean, etc. and rapply are new as of zoo 0.9-9
library(zoo) 
as.its(rollmean(as.zoo(x), 5))

See ?rollmean and ?rapply in the zoo package.

On 4/29/05, Omar Lakkis <uofiowa at gmail.com> wrote:
> filter() returns a ts object even if x is an its. Is there a filter
> function that returns an its output for an its input?




More information about the R-help mailing list