Extract.solist | R Documentation |
Extract or replace some entries in a list of spatial objects, or extract a designated sub-region in each object.
## S3 method for class 'solist'
x[i, ...]
## S3 replacement method for class 'solist'
x[i] <- value
x |
An object of class |
i |
Subset index. Any valid subset index for vectors in the usual R sense,
or a window (object of class |
value |
Replacement value for the subset. |
... |
Ignored. |
These are methods for extracting and replacing subsets
for the class "solist"
.
The argument x
should be an object of class "solist"
representing a list of two-dimensional spatial objects.
See solist
.
For the subset method, the subset index i
can be either
a vector index (specifying some elements of the list)
or a spatial window (specifying a spatial sub-region).
For the replacement method,
i
must be a vector index: the designated elements will be
replaced.
Another object of the same class as x
.
solist
,
plot.solist
,
summary.solist
x <- solist(japanesepines, cells, redwood)
x[2:3]
x[square(0.5)]
x[1] <- list(finpines)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.