I have a data frame in R with 3 columns: start time, end time, and value
start_time end_time value
2017-01-03 00:00 2017-01-03 00:05 90
2017-01-03 00:05 2017-01-03 00:10 89
2017-01-03 00:10 2017-01-03 00:15 33
2017-01-03 00:15 2017-01-03 00:20 55
another data frame is a list of time. For each time in the list, if the time is between start time and end time, return the value, if not return NA. Is there a way I can do this use foreach function?