I have a list of data frames. I want to merge them vertically on column name.
Here are three data frames in my list, for example:
Precinct VoterTurnout Johnson Jameson
4030 45 20 25
And this one...
Precinct VoterTurnout Jimson
1234 33 20
And the third...
Precinct VoterTurnout Jhohnshohn
4321 555 222
These dataframes are in a list named listDFs
. How do I merge them to look like this?
Precinct VoterTurnout Johnson Jameson Jimson Jhohnshohn
4030 45 20 25 NA NA
1234 33 NA NA 20 NA
4321 555 NA NA NA 222