namedList {BBmisc} | R Documentation |
Create named list, possibly initialized with a certain element.
Description
Even an empty list will always be named.
Usage
namedList(names, init)
Arguments
names |
[ |
init |
[valid R expression] |
Value
[list
].
Examples
namedList(c("a", "b"))
namedList(c("a", "b"), init = 1)
[Package BBmisc version 1.13 Index]