FLlst | R Documentation |
FLlst
is a class that extends list
but implements a set of
features that give a little more structure to list objects. First the
elements of FLlst
must all be of the same class. Second it implements
a lock mechanism that, when turned on, does not allow the user to increase
or decrease the object length.
FLlst(object, ...)
object |
unnamed object to be added to the list |
... |
other named or unnamed objects |
The data. list
.
Names of the list elements. character
.
Description of the object. character
.
Lock mechanism, if turned on the length of the list can not be
modified by adding or removing elements. logical
.
A constructor method exists for this class that can take named arguments for any of the list elements.
The FLR Team
[, [<-, [[<-, $<-, coerce, lapply, window, list
fll01 <- new("FLlst", list(a=1:10, b=10:20))
fll02 <- new("FLlst", list(1:10, 10:20), names=c("a","b"))
fll03 <- FLlst(a=1:10, b=10:20)
fll04 <- FLlst(list(a=1:10, b=10:20))
fll05 <- FLlst(c(1:10), c(10:20))
names(fll05) <- names(fll01)
names(fll01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.