named_list | R Documentation |
Generator for named list (length corresponds to the number of names) where each item is optionally initialized with a pre-defined value.
named_list(ns, init = NULL)
ns |
[ |
init |
[any] |
A named list.
named_list(letters[1:10])
named_list(letters[1:10], init = NA)
named_list(letters[1:10], init = list())
named_list(letters[1:10], init = named_list(letters[1:2]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.