as.list: Create a list of RasterLayer objects

Description Usage Arguments Value Examples

Description

Create a list of RasterLayer objects from Raster* objects

Usage

1
2
## S4 method for signature 'Raster'
as.list(x, ...)

Arguments

x

Raster* object

...

additional Raster* objects

Value

list

Examples

1
2
3
4
5
6
r <- raster(ncol=3, nrow=3)
r[] <- 1:ncell(r)
as.list(r)

s <- stack(r,r*2,r*3)
as.list(s, r)


Search within the raster package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.