I have multiple years of daily data for various variables. Some variables have random missing days. I would like to merge each dataset into rows by matching date so that all the variables are collated for a given date into one row. There are many years of data and many variables so cannot be done manually. Below example has 3 such datasets and an example collated that I am trying to achieve. You can see there are missing dates in each DF which would appear as NA in the collated dataframe.
DF1: Date Var Var
01.01.2001 57685 574849
02.01.2001 57342 577890
04.01.2001 44332 574849
05.01.2001 57321 574849
.......... .... ......
DF2: Date Var A Var B
01.01.2001 abnns jjkall
03.01.2001 bbaas abnns
04.01.2001 jjkall 574849
05.01.2001 57321 jjkall
.......... .... ......
DF3: Date Var K9 Var M8
02.01.2001 ab221 jjk112
03.01.2001 bb445 ab345
04.01.2001 jjk567 574rtg9
05.01.2001 573fda jjk243
.......... .... ......
COLLATED:
Date Var 1 Var 2 Var A Var B Var K9 Var M8
01.01.2001 57685 574849 abnns jjkall NA NA
02.01.2001 57342 577890 NA NA ab221 jjk112
03.01.2001 NA NA bbaas abnns bb445 ab345
04.01.2001 44332 574849 jjkal 574849 jjk567 574rtg9
05.01.2001 57321 574849 57321 jjkall 573fda jjk243
.......... .... ...... ...... ...... ...... ......