Home > Enterprise >  Join list large list into a single tibble
Join list large list into a single tibble

Time:05-31

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?

CodePudding user response:

In tidyverse, you could use

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

CodePudding user response:

you can use Reduce.

Reduce(full_join, list)
  • Related