I have two data frames. In the first one there are dates and times (there are not always present 24 entries for each day):
datetime
2011-01-01 00:00:00
2011-01-01 01:00:00
2011-01-01 02:00:00
2011-01-02 00:00:00
...
The second one contains only dates and a value:
date value
2011-01-01 1
2011-01-02 4
2011-01-03 3
2011-01-04 7
...
Dates are stored as POSIXlt types. I want to attach the value from the second data frame to the first one, comparing only the date part. The result should be this:
datetime value
2011-01-01 00:00:00 1
2011-01-01 01:00:00 1
2011-01-01 02:00:00 1
2011-01-02 00:00:00 4
...