powered by
Even an empty list will always be named.
namedList(names, init)
[list].
list
[character] Names of elements.
character
[valid R expression] If given all list elements are initialized to this, otherwise NULL is used.
NULL
namedList(c("a", "b")) namedList(c("a", "b"), init = 1)
Run the code above in your browser using DataLab