I have the following dataframes. I cannot find a satisfying way to merge them all. I tried the following:
a=data.frame('name'=c('a','b','c','d'),'value'=c(23,45,23,56))
b=data.frame('name'=c('a','b','f','e'),'value'=c(23,45,23,56))
d=data.frame('name'=c('g','b','f','e'),'value'=c(23,45,23,56))
testlist=list(a,b,d)
c=join_all(testlist,by='name',type='left',match='all')
But this return me the following table:
name value value value
1 a 23 23 NA
2 b 45 45 45
3 c 23 NA NA
4 d 56 NA NA
while instead, I would like a table with all the possible names in the first column ('a','b','c','d','e','f','g') and all the other values in the corresponding rows in 3 different columns (1 per dataframe). How can I do it? Does not matter if all the blanck values are NA, I will change then later with 0
Thanks!!!!!!