raster (version 1.1.7)

stack: Create a RasterStack object

Description

A RasterStack is a collection of RasterLayer objects with the same spatial extent and resolution. A RasterStack can be created from RasterLayer objects, or from raster files, or both. The can also be created from SpatialPixels or SpatialGrid objects.

Arguments

Value

  • a RasterStack object

See Also

addLayer, dropLayer, raster

Examples

Run this code
fn <- system.file("external/test.grd", package="raster")
  s <- stack(fn, fn)
  r <- raster(fn)
  s <- stack(r, fn)

Run the code above in your browser using DataCamp Workspace