View source: R/df_rows_to_list.R
| df_rows_to_list | R Documentation |
Returns a list of lists with each sub-list being a row of the data frame.
df_rows_to_list(x, named = TRUE)
x |
[ |
named |
[ |
List of (named) lists.
Other data frame helpers:
df_add_category(),
df_add_constant_columns(),
df_explode(),
df_split_col()
x = data.frame(x = 1:3, y = letters[3:5])
df_rows_to_list(x)
df_rows_to_list(x, named = FALSE)
df_rows_to_list(unname(x), named = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.