Extract or Replace Subset of a List of Things
Extract or replace a subset of a list of things.
## S3 method for class 'anylist' x[i, ...] ## S3 replacement method for class 'anylist' x[i] <- value
x |
An object of class |
i |
Subset index. Any valid subset index in the usual R sense. |
value |
Replacement value for the subset. |
... |
Ignored. |
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"
.
Another object of class "anylist"
.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk
x <- anylist(A=runif(10), B=runif(10), C=runif(10)) x[1] <- list(A=rnorm(10))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.