Learn R Programming

chronosphere (version 0.4.1)

stack,VectorSpatialClasses-method: 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 VectorSpatialClasses
stack(x, ...)

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

Value

A RasterArray class object.

A RasterArray class object.

Arguments

x

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

...

Additional Spatial* objects.

Examples

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

Run the code above in your browser using DataLab