subset,SpatialStack-method: Subset a SpatialStack object
Description
Extract subsets of SpatialStack class object similarly to a RasterStack
Usage
# S4 method for SpatialStack
subset(x, i, drop = TRUE)
Value
A Spatial or SpatialStack class object.
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?