container

A Lockable List Structure with Constraints on Content

Container class that specializes the list construct of R to provide content and access control

Keywords
classes, methods
Creating Objects

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

Slots

x
list of entities that are guaranteed to share a certain property
content
tag describing container contents
locked
boolean indicator of locked status. Value of TRUE implies assignments into the container are not permitted

Methods

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)

Aliases
  • class:container
  • container
  • container-class
  • [,container-method
  • [[<-,container-method
  • [[,container-method
  • content,container-method
  • length,container-method
  • locked,container-method
  • show,container-method
Examples
  x1 <- new("container", x=vector("list", length=3), content="lm")
  lm1 <- lm(rnorm(10)~runif(10))
  x1[[1]] <- lm1
 
Documentation reproduced from package Biobase, version 2.26.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.