Learn R Programming

spatstat (version 1.48-0)

Extract.solist: Extract or Replace Subset of a List of Spatial Objest

Description

Replace a subset of a list of things.

Usage

"["(x, i, ...)
"["(x, i) <- value

Arguments

x
An object of class "solist" representing a list of two-dimensional spatial objects.
i
Subset index. Any valid subset index in the usual R sense.
value
Replacement value for the subset.
...
Ignored.

Value

Another object of class "solist".

Details

This is a subset replacement method for the class "solist".

The argument x should be an object of class "solist" representing a list of two-dimensional spatial objects. See solist.

The method replaces a designated subset of x, and returns an object of class "solist".

See Also

solist, plot.solist, summary.solist

Examples

Run this code
   x <- solist(japanesepines, cells, redwood)
   x[1] <- list(finpines)
 

Run the code above in your browser using DataLab