Extract.listof | R Documentation |
Replace a subset of a list of things.
## S3 replacement method for class 'listof'
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. |
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.
The method replaces a designated
subset of x
, and returns an object of class "listof"
.
Another object of class "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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.