SimpleList objects
The (non-virtual) SimpleList class extends the List virtual class.
The SimpleList class is the simplest, most generic concrete implementation of the List abstraction. It provides an implementation that subclasses can easily extend.
In a SimpleList object the list elements are stored internally in an ordinary list.
The following constructor is provided for SimpleList objects:
SimpleList(...)
: Takes possibly named objects as elements
for the new SimpleList object.
All the coercions documented in the List man page apply to SimpleList objects.
Same as for List objects. See ?`List-utils`
for
more information.
When a SimpleList object is displayed, the "Simple" prefix is removed
from the real class name of the object.
See classNameForDisplay
for more information about this.
List objects for the parent class.
The CompressedList class defined in the IRanges package for a more efficient alternative to SimpleList.
The SimpleIntegerList class defined in the IRanges package for a SimpleList subclass example.
The DataFrame class for another SimpleList subclass example.
## Displaying a SimpleList object: x1 <- SimpleList(a=letters, i=Rle(22:20, 4:2)) class(x1) ## The "Simple" prefix is removed from the real class name of the ## object: x1 library(IRanges) x2 <- IntegerList(11:12, integer(0), 3:-2, compress=FALSE) class(x2) ## The "Simple" prefix is removed from the real class name of the ## object: x2 ## This is controlled by internal helper classNameForDisplay(): classNameForDisplay(x2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.