powered by
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")
A data frame or tibble, depending on the class of the input.
A named list of data frames or tibbles.
A character scalar: name of the column to hold the list names (default "name").
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)
Run the code above in your browser using DataLab