Skip to content
Prev 7709 / 29559 Next

overlay() in raster package

Thanks Kamran, unfortunately I don't think the placement of 'else' has any effect - the same errors arise.

To answer the request for more details, here's a self-contained version of what my data pretty much looks like:

require(raster)
rs <- raster(system.file("external/test.grd", package="raster"))
ENN.500<-reclass(rs,rclmat=matrix(c(200,250,NA),ncol=3,byrow=T))
forest.cover<-reclass(rs,rclmat=matrix(c(0,160,0,160,290,1,290,xmax(rs),0),ncol=3,byrow=T))
plot(stack(forest.cover,ENN.500))

Cheers,
Oliver