Creates a list and automatically assigns names using the names of the
corresponding objects or, if unnamed, the expressions themselves.
Arguments
- ...
Objects to be stored in a list.
References
See page 46 of S Programming by Venables & Ripley
Examples
#----------------------------------------------------------------------------
# nlist() examples
#----------------------------------------------------------------------------
library(bkmisc)
a <- 1:5
nlist(a, 6:10, x = 3)
#> $a
#> [1] 1 2 3 4 5
#>
#> $`6:10`
#> [1] 6 7 8 9 10
#>
#> $x
#> [1] 3
#>