Create named list, possibly initialized with a certain element.
namedList(names, init)
names
[character] Names of elements.
character
init
[valid R expression] If given all list elements are initialized to this, otherwise NULL is used.
NULL
[list].
list
namedList(c("a", "b")) namedList(c("a", "b"), init = 1)