I have two data frames that I want to combine; however, I only want to keep one date. df1 will be the months from Jan 01, 2013 to Oct, 1, 2016. df2 will contain the frequency of occurrence of an event. If there was no event that month, df2 will not show a value.
df1 <- data.frame(date=seq(as.Date("2013-01-01"), as.Date("2016-10-01"), by="month"))
    df1
    date            Freq 
    1  2013-01-01    0
    2  2013-02-01    0
    3  2013-03-01    0
    4  2013-04-01    0
    5  2013-05-01    0
    ...
    df2
    date            Freq
    1  2013-03-01    1
    2  2013-08-01    2
    3  2014-04-01    5
    4  2014-05-01    2
    5  2014-06-01    5
    ...
I want the new data frame to look like the following.
    date            Freq 
    1  2013-01-01    0
    2  2013-02-01    0
    3  2013-03-01    1
    4  2013-04-01    0
    5  2013-05-01    0
    6  2013-06-01    0
    7  2013-07-01    0
    8  2013-08-01    2
    9  2013-09-01    0
    ...
 
     
     
    