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, ...)

Arguments

object
unnamed object to be added to the list
...
other named or unnamed objects

Slots

.Data
The data. list.
names
Names of the list elements. character.
desc
Description of the object. character.
lock
Lock mechanism, if turned on the length of the list can not be modified by adding or removing elements. logical.

Constructor

A constructor method exists for this class that can take named arguments for any of the list elements.

See also

[, [<-, [[<-, $<-, coerce, lapply, window, list

Examples

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)
#> [1] "a" "b"