As @andresrcs says, it's not entirely clear what your criteria for joining are, but you can accomplish this type of join using the fuzzyjoin package. Take a look at this question and answer for an example of a join based on time intervals:
As @andresrcs says, it's not entirely clear what your criteria for joining are, but you can accomplish this type of join using the fuzzyjoin package. Take a look at this question and answer for an example of a join based on time intervals: