list.fromNames | R Documentation |
This function takes a character vector of names and creates a list where each element is named according to the character vector and filled with a specified value.
list.fromNames(x = LETTERS[1:5], fill = NaN, use.names = FALSE)
x |
A character vector of names, with a default of the first five letters of the alphabet. |
fill |
The value used to fill the elements of the list, with a default of |
use.names |
Logical. If |
A named list with elements filled with the specified value.
list.fromNames() # Default behavior with `LETTERS[1:5]` and `NaN`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.