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

subset-SpatialStack-method

Subset a SpatialStack object


Description

Extract subsets of SpatialStack class object similarly to a RasterStack

Usage

## S4 method for signature 'SpatialStack'
subset(x, i, drop = TRUE)

Arguments

x

SpatialStack object.

i

subscript ofvector-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 RasterLayer?

Value

A Spatial or SpatialStack class object.

Examples

# stack of the paleomap paleocoastlines
data(coasts)
spstack <- coasts@stack
subset(spstack, "X5Ma_CS_v7")

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.