unstack | R Documentation |
Create a list of RasterLayer objects from a RasterStack or RasterBrick
unstack(x, ...)
x |
a RasterStack object |
... |
not used. further arguments passed to or from other methods |
A list of RasterLayer objects
stack
file <- system.file("external/test.grd", package="raster")
s <- stack(file, file)
list1 <- unstack(s)
b <- brick(s)
list2 <- unstack(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.