lol_to_df | R Documentation |
When running a vapply
function and each element returns a list with
multiple values, the return value is a list of lists. This function can be
used to convert that return value into a data.frame.
lol_to_df(lol, name = "well")
lol |
List of lists that is a result of a vapply |
name |
Column name to use for the name of each list |
named_vec_to_df
vapply(c("a", "b", "c"),
function(x) list(low = x, up = toupper(x)),
list(character(1), character(1))) %>%
lol_to_df("key")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.