powered by
Replace a subset of a list of things.
# S3 method for listof [(x, i) <- value
Another object of class "listof".
"listof"
An object of class "listof" representing a list of things which all belong to one class.
Subset index. Any valid subset index in the usual R sense.
Replacement value for the subset.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk
This is a subset replacement method for the class "listof".
The argument x should be an object of class "listof" representing a list of things that all belong to one class.
x
The method replaces a designated subset of x, and returns an object of class "listof".
plot.listof, summary.listof
plot.listof
summary.listof
x <- list(A=runif(10), B=runif(10), C=runif(10)) class(x) <- c("listof", class(x)) x[1] <- list(A=rnorm(10))
Run the code above in your browser using DataLab