namedList {BBmisc} | R Documentation |
Create named list, possibly initialized with a certain element.
namedList(names, init)
names |
[ |
init |
[valid R expression] |
[list
].
namedList(c("a", "b"))
## $a
## NULL
##
## $b
## NULL
namedList(c("a", "b"), init=1)
## $a
## [1] 1
##
## $b
## [1] 1