Last chance! 50% off unlimited learning
Sale ends in
Extract subsets of SpatialStack class object similarly to a RasterStack
# S4 method for SpatialStack
subset(x, i, drop = TRUE)
A Spatial
or SpatialStack
class object.
SpatialStack
object.
subscript ofvector-like subsetting.
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
?
# stack of the paleomap paleocoastlines
data(coasts)
spstack <- coasts@stack
subset(spstack, "X5Ma_CS_v7")
Run the code above in your browser using DataLab