container | R Documentation |
Container class that specializes the list construct of R to provide content and access control
new('container', x = [list], content = [character], locked = [logical])
list of entities that are guaranteed to share a certain property
tag describing container contents
boolean indicator of locked status. Value of TRUE implies assignments into the container are not permitted
Class-specific methods:
content(container)
returns content
slot of argument
locked(container)
returns locked
slot of argument
Standard methods defined for 'container':
show(container)
prints container
length(container)
returns number of elements in the container
[[(index)
and [[(index, value)
access and replace elements in the container
[(index)
make a subset of a container (which will itself be a container)
x1 <- new("container", x=vector("list", length=3), content="lm")
lm1 <- lm(rnorm(10)~runif(10))
x1[[1]] <- lm1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.