Extract.anylist

0th

Percentile

Extract or Replace Subset of a List of Things

Extract or replace a subset of a list of things.

Keywords
manip, spatial, list
Usage
## S3 method for class 'anylist':
[(x, i, \dots)

## S3 method for class 'anylist': [(x, i) <- value

Arguments
x
An object of class "anylist" representing a list of things.
i
Subset index. Any valid subset index in the usual Rsense.
value
Replacement value for the subset.
...
Ignored.
Details

These are the methods for extracting and replacing subsets for the class "anylist".

The argument x should be an object of class "anylist" representing a list of things. See anylist.

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

Value

  • Another object of class "anylist".

See Also

anylist, plot.anylist, summary.anylist

Aliases
  • [.anylist
  • [<-.anylist
Examples
x <- anylist(A=runif(10), B=runif(10), C=runif(10))
   x[1] <- list(A=rnorm(10))
Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.