sub-SpatialStack-ANY-ANY-method: Indexing to extract subsets of a SpatialStack object

Description Usage Arguments Value Examples

Description

The single and double bracket subsetting is identical in the case of SpatiaStacks.

Usage

1
2
## S4 method for signature 'SpatialStack,ANY,ANY'
x[i, drop = TRUE]

Arguments

x

SpatialStack object.

i

subscript of vector-like subsetting.

drop

logical in case the result of subsetting is a single element, should the SpatialStack wrapper be dropped and the element be reduced to a single Spatial?

Value

A SpatialStack or Spatial class object.

Examples

1
2
3
4
# stack of the paleomap paleocoastlines
data(coasts)
spstack <- coasts@stack
spstack[1]

chronosphere documentation built on April 19, 2021, 1:07 a.m.