powered by
Create a list of RasterLayer objects from Raster* objects
# S4 method for Raster as.list(x, ...)
Raster* object
additional Raster* objects
list
# NOT RUN { r <- raster(ncol=3, nrow=3) r[] <- 1:ncell(r) as.list(r) s <- stack(r,r*2,r*3) as.list(s, r) # }
Run the code above in your browser using DataLab