container-class {Biobase}R Documentation

container: a class that specializes the list construct of R to provide content and access control

Description

A lockable list structure with constraints on content.

Usage

 #new('container', x=[list], content=[character], locked=[logical] )

Slots

x
[class: list] list of entities that are guaranteed to share a certain property
content
[class: character] tag describing container contents
locked
[class: logical] boolean indicator of locked status. locked==TRUE implies assignments into the container are not permitted

Methods

content
returns content slot of argument
locked
returns locked slot of argument
show
prints container
[[(replace)
replace elements in the container
[[(access)
access elements in a container
[(access)
make a subset of a container (which will itself be a container)

Examples

  x1 <- new("container", x=vector("list", length=3), content="lm")
  lm1 <- lm(rnorm(10)~runif(10))
  x1[[1]] <- lm1
 

[Package Biobase version 1.4.15 Index]