Learn R Programming

raster (version 3.6-30)

unstack: Unstack

Description

Create a list of RasterLayer objects from a RasterStack or RasterBrick

Usage

unstack(x, ...)

Value

A list of RasterLayer objects

Arguments

x

a RasterStack object

...

not used. further arguments passed to or from other methods

See Also

Examples

Run this code
  file <- system.file("external/test.grd", package="raster")
  s <- stack(file, file)
  list1 <- unstack(s)
  b <- brick(s)
  list2 <- unstack(b)

Run the code above in your browser using DataLab