Re: [R] error with as.factor raster

2013-12-16 Thread Prof Brian Ripley
On 16/12/2013 15:14, Lauria, Valentina wrote: Dear List members, I am trying to map the habitat suitability of Nephrops and one of my predictor is a categorical variable. However when I utilised the command "as.factor" (before to create my rasters stack) I get the error message "Error in 1:nc

[R] error with as.factor raster

2013-12-16 Thread Lauria, Valentina
Dear List members, I am trying to map the habitat suitability of Nephrops and one of my predictor is a categorical variable. However when I utilised the command "as.factor" (before to create my rasters stack) I get the error message "Error in 1:ncol(r) : argument of length 0". Could anyone hel