Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stack

Stacking method for the vector Spatial* SpatialStack objects


Description

The function alls a RasterArray-like stacking of Spatial* objects and SpatialStacks .

Usage

## S4 method for signature 'VectorSpatialClasses'
stack(x, ...)

## S4 method for signature 'SpatialStack'
stack(x, ...)

Arguments

x

SpatialPoints,SpatialPointsDataFrame,SpatialLines,SpatialLinesDataFrame,SpatialPolygons,SpatialPolygonsDataFrame, object.

...

Additional Spatial* objects.

Value

A RasterArray class object.

A RasterArray class object.

Examples

data(coasts)
one <- coasts[1]
two <- coasts[2]
three <- coasts[3]
# create a SpatialStack similar to a RasterStack
spStack <- stack(one, two, three)

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.