| list_c {purrr} | R Documentation | 
Combine list elements into a single data structure
Description
-  
list_c()combines elements into a vector by concatenating them together withvctrs::vec_c(). -  
list_rbind()combines elements into a data frame by row-binding them together withvctrs::vec_rbind(). -  
list_cbind()combines elements into a data frame by column-binding them together withvctrs::vec_cbind(). 
Usage
list_c(x, ..., ptype = NULL)
list_cbind(
  x,
  ...,
  name_repair = c("unique", "universal", "check_unique"),
  size = NULL
)
list_rbind(x, ..., names_to = rlang::zap(), ptype = NULL)
Arguments
x | 
 A list. For   | 
... | 
 These dots are for future extensions and must be empty.  | 
ptype | 
 An optional prototype to ensure that the output type is always the same.  | 
name_repair | 
 One of   | 
size | 
 An optional integer size to ensure that every input has the same size (i.e. number of rows).  | 
names_to | 
 By default,   | 
Examples
x1 <- list(a = 1, b = 2, c = 3)
list_c(x1)
x2 <- list(
  a = data.frame(x = 1:2),
  b = data.frame(y = "a")
)
list_rbind(x2)
list_rbind(x2, names_to = "id")
list_rbind(unname(x2), names_to = "id")
list_cbind(x2)