[R] Predict function in Raster package

David Winsemius dwinsemius at comcast.net
Wed Nov 28 04:03:26 CET 2012


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




More information about the R-help mailing list