I'm currently trying to vertically stack three data frames together in R so I can keep my data clean. The problem is that the ordering of each of the frames is different and I don't want R to reorder each column to match the order of the columns in the first data frame. The data frames look something like this:
df.1
X1 X2 X3 X4
NA A B C D
200301 2 4 5 6
200302 4 5 8 9
df.2
X3 X1 X3 X2
NA C A D B
200401 3 1 5 7
200402 2 9 6 4
df.3
X4 X3 X2 X1
NA D C B A
200501 5 4 5 6
200502 8 2 3 8
And I want them to join vertically such that they look like this, obviously without the column labels in between them. I am essentially trying to do the same thing as just copying and pasting the dataframes one underneath each other.
df.4
X1 X2 X3 X4
NA A B C D
200301 2 4 5 6
200302 4 5 8 9
X3 X1 X3 X2
NA C A D B
200401 3 1 5 7
200402 2 9 6 4
X4 X3 X2 X1
NA D C B A
200501 5 4 5 6
200502 8 2 3 8
Is there any possible way to achieve this? I've had a fair look and can't seem to find anything that would do this for me. Appreciate any and all help!