named_list | R Documentation |
Creates a list where elements are automatically named using their input variable names. Uses non-standard evaluation to capture the variable names as they appear in the function call.
named_list(...)
... |
Unquoted variable names that will become both the list elements and their names |
A named list where each element's name matches its input variable name
x <- 1
y <- "hello"
z <- data.frame(a = 1:3)
# Creates list with names "x", "y", "z"
my_list <- named_list(x, y, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.