I would like to merge two xts table and respect the columns header, while adding a column if needed. The XTS1
would be :
ABC DEF
1/18/2020 33 25
1/19/2020 34 26
XTS2
would be :
ABC DEF GHI
1/20/2020 35 24 19
and the resulting table would be :
ABC DEF GHI
1/18/2020 33 25 0
1/19/2020 34 26 0
1/20/2020 35 24 19
The order of the column might change. Does anybody has a sharp way of fixing this please ?