spatstat (version 1.42-2)

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

Description

Replace a subset of a list of things.

Usage

## S3 method for class 'solist':
[(x, i, \dots)

## S3 method for class 'solist': [(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 Rsense.
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 DataCamp Workspace