I have diff data frames
data frame A
| bed | bake | sea | tea |
|---|---|---|---|
| aa | 232 | charles | 232 |
| bb | 456 | james | 456 |
| bbb | 456 | becky | 456 |
| ccaa | 456 | brown | 456 |
Data frame B
| BEARD | bay | pass | butter |
|---|---|---|---|
| james | 232 | 232 | bb |
| brat | 456 | 456 | ccaa |
| Joyce | 456 | 456 | aabb |
| Mayer | 456 | 456 | dd |
I have many of data frame A and data frame B in a folder what command should I run to re-arrange them base on data frame A header and row bind them as one
basically what I want the column to re-arrange themselves using the data frame A header as the base
I want to have something like this
| bed | bake | sea | tea |
|---|---|---|---|
| aa | 232 | charles | 232 |
| bb | 456 | james | 456 |
| bbb | 456 | becky | 456 |
| ccaa | 456 | brown | 456 |
| bb | 232 | james | 232 |
| ccaa | 456 | brat | 456 |
| aabb | 456 | Joyce | 456 |
| dd | 456 | Mayer | 456 |