Join list large list into a single tibble

Viewed 44

I have a list of length 42 containing tibbles that I would like to join into a single tibble.

the way I would do it is:

full_join(list[[1]],list[[2]],list[[3]]...list[[42]])

I'm sure there's an easier way to do it, but I could not figure it out. can someone help?

2 Answers

you can use Reduce.

Reduce(full_join, list)

In tidyverse, you could use

purrr::reduce(df_list, dplyr::full_join)
Related