## S3 method for class 'layered':
[(x, i, j, drop=FALSE, ...)"layered")."owin").i specifies only a single layer
and drop=TRUE, then the contents of this layer
will be returned."layered".layered. This function extracts a designated subset of a layered object.
It is a method for [ for the
class "layered".
The index i specifies which layers will be retained.
It should be a valid subset index for the list of layers.
The index j will be applied to each layer. It is typically
a spatial window (class "owin") so that each of the layers
will be restricted to the same spatial region.
Alternatively j may be any subset index
which is permissible for the "[" method for each of the layers.
layeredexample(layered)
L[-2]
L[, square(0.5)]Run the code above in your browser using DataLab