View source: R/list_to_data_frame.R
list_to_data_frame | R Documentation |
Convert mapping list to data frame
list_to_data_frame(l, ...)
list_to_data_frame_(l, category = "category", item = "item")
l |
A named list of character vectors. |
... |
Unquoted names of category and item columns. Defaults to 'category' and 'item'. |
category |
Name of category column. Defaults to 'category'. |
item |
Name of item column. Defaults to 'item'. |
A data frame.
Michaja Pehl
l <- list(Africa = c('Egypt', 'Tanzania'),
Europe = c('Portugal', 'Ukraine', 'Denmark'))
list_to_data_frame(l, region, country)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.