unstack: Unstack

Description Usage Arguments Value See Also Examples

Description

Create a list of RasterLayer objects from a RasterStack or RasterBrick

Usage

1

Arguments

x

a RasterStack object

...

not used. further arguments passed to or from other methods

Value

A list of RasterLayer objects

See Also

stack

Examples

1
2
3
4
5
  file <- system.file("external/test.grd", package="raster")
  s <- stack(file, file)
  list1 <- unstack(s)
  b <- brick(s)
  list2 <- unstack(b)

Example output

Loading required package: sp

raster documentation built on Jan. 5, 2021, 3:01 a.m.