I have multiple data frames (different rows and columns) and I am trying to concatenate them into one. They come with a different number of columns but equal names. Simply:
> colnames(data1)
"A" "B" "C" "D" "E" "F" "G" "H"
> colnames(data2)
"A" "B" "C" "D"
> colnames(data3)
"A" "D" "E" "F" "H"
I need to concatenate all three data frames into one in a way that match the column name, and if it is not matchable just insert "NA" for that particular column. Thanks in advance