I have many data.frames who have different row numbers.
I would like to merge them all into one data.frame.
I know the inner_join
command does the job for two data.frames, but in my case I have a lot of data.frames.
reproducible example for my data.frames:
df1<-data.frame(s=c(1,2,3,4,5,6,7),
x=c('a','b','c','d','e', 'f', 'g'))
df2<-data.frame(k=c(6,7,8,9),
x=c('a','b','c','d'))
df3<-data.frame(y=c(10,11,12,13,14),
x=c('f','g','h','i','j'),
u=c(8,7,4,5,3))
df4<-data.frame(z=c(8,7,9,1,3,4,6,2),
x=c('a','b','c','d','f','e','h', 'j'))
df_aaa<-data.frame(w=c(1000,500),
x=c('a','b'))
ghj_df<-data.frame(q=c(36,32,31,35,34,34,31,35,36),
x=c('a','b','c','d','e','f','g','h','j'))