[R] Overcoming warning in package zoo

From: Rita Carreira <ritacarreira_at_hotmail.com>
Date: Wed, 13 Apr 2011 14:38:21 +0000

Dear R users,I have a long program that I am trying to run--I am using RStudio as my interface with R. The pieces of the program run well individually but when I try to run everything in sequence it bogs down because of a warning after using rollmax from package zoo. Here is the warning:
"In rollmax.zoo(zoo(Pmat), 7, na.pad = FALSE, align = "right") : na.pad is deprecated. Use fill."
The code that generates this warning islibrary(zoo)Pmax <- as.data.frame(rollmax(zoo(Pmat), 7, na.pad = FALSE, align = "right")) I also obtain the same warning when I run Pmax <- as.data.frame(rollmax(zoo(Pmat), 7, na.pad = TRUE, align = "right")) Note that Pmat is a 136x271 double matrix and Pmax is a dataframe (265 obs. of 136 variables). The function rollmax is doing exactly what I want it to do, so my data is as it's supposed to be and everything is fine, except for the warning, that is... The version of zoo that I am running was obtained by running install.packages("zoo", repos = "
http://r-forge.r-project.org") So, my ultimate goal is to either find a way for R to ignore this warning and move on to the next step or fix the problem that is causing the warning. Any thoughts or suggestions?
Thanks so much and have a great day!


"If you think education is expensive, try ignorance"--Derek Bok

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 13 Apr 2011 - 14:51:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Apr 2011 - 15:40:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive