Re: [R] Overcoming warning in package zoo

From: Gabor Grothendieck <>
Date: Wed, 13 Apr 2011 10:56:34 -0400

On Wed, Apr 13, 2011 at 10:38 AM, Rita Carreira <> 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 <-, 7, na.pad = FALSE, align = "right"))
> I also obtain the same warning when I run Pmax <-, 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 = "")
> 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.
tel: 1-877-GKX-GROUP
email: ggrothendieck at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 13 Apr 2011 - 15:24:00 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 - 16:00:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive