Last chance! 50% off unlimited learning
Sale ends in
Extract or replace a subset of a list of things.
# S3 method for anylist
[(x, i, ...) # S3 method for anylist
[(x, i) <- value
Another object of class "anylist"
.
An object of class "anylist"
representing a list of things.
Subset index. Any valid subset index in the usual R sense.
Replacement value for the subset.
Ignored.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk
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"
.
anylist
,
plot.anylist
,
summary.anylist
x <- anylist(A=runif(10), B=runif(10), C=runif(10))
x[1] <- list(A=rnorm(10))
Run the code above in your browser using DataLab