Re: [R] its filter

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat 30 Apr 2005 - 04:08:49 EST

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@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?



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 30 04:13:41 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:31 EST