Joining data frames by lubridate date %within% intervals
问题 I've been practicing and learning wrangling R data frames with columns that contain lubridate data types, such as an example problem in my other question. Now, I am trying to do the equivalent of joining two data frames, but joining them by whether one timestamp in one data frame falls within an interval in the other data frame. For example: This is df1 : > glimpse(df1) Observations: 6,160 Variables: 4 $ upload_id <int> 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, ... $ site_id