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 <[EMAIL PROTECTED]> 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?

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to