I have many data.frames in different length, and I want to concatenate them one by one by row.names in R, if one data.frame miss some names, then fill up the value with 0. e.g.
df1
A 1
B 1
C 1
D 1
df2
C 2
D 2
E 2
What I want is
New_df
A 1 0
B 1 0
C 1 2
D 1 2
E 0 2
Have tried several ways but none of them work. Thanks!!