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
______________________________________________
R-help@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.