Predict function in Raster package
On Nov 27, 2012, at 2:33 PM, megmurr wrote:
Hey, I am having troubles using the 'predict' function with in the Raster package. I am using pm<-predict(mm, predictors) where mm is the mahalanobis distance and the predictors are a stack of 6 raster layers containing environmental variables. When I try to run the prediction I get the following warning message: Warning message: In layerNames(x): the layerNames function is obsolete. Use "names" instead. I have done some research on raster package updates and in the summer they added the function 'names' to replace 'layerNames'. I am wondering if there is a bug in the predict function that still relies on the layerNames function?
Shouldn't this question _first_ be directed to the package authors?
David Winsemius, MD Alameda, CA, USA