
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!

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


 		 	   		  
	[[alternative HTML version deleted]]

