[R] Overcoming warning in package zoo
ggrothendieck at gmail.com
Wed Apr 13 16:56:34 CEST 2011
On Wed, Apr 13, 2011 at 10:38 AM, Rita Carreira
<ritacarreira at hotmail.com> wrote:
> 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!
Use the CRAN version of zoo. If you do want to use the development
version then surely the error message is pretty explicit in what you
have to do.
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help