as.list | R Documentation |
Create a list of RasterLayer objects from Raster* objects
## S4 method for signature 'Raster'
as.list(x, ...)
x |
Raster* object |
... |
additional Raster* objects |
list
r <- raster(ncol=3, nrow=3)
values(r) <- 1:ncell(r)
as.list(r)
s <- stack(r,r*2,r*3)
as.list(s, r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.