View source: R/data_rbind_list.R
rbind_list | R Documentation |
Binds a named list of data frames (or tibbles) into a single data frame. Adds the list name as a new column (first column).
rbind_list(lst, name = "name")
lst |
A named list of data frames or tibbles. |
name |
A character scalar: name of the column to hold the list names (default "name"). |
A data frame or tibble, depending on the class of the input.
lst <- list(a = data.frame(x = 1:2), b = data.frame(x = 3:4))
rbind_list(lst)
lst <- split(iris, iris$Species)
rbind_list(lst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.