I've been trying to split the data in 30 minute intervals, and I have not been able to find a solution to this problem, the date and time is a date_time variable. I just want to be able to make a df based off the time the date is not important
I have tried just splitting the data by formatting the date to just the time, but that also was not working.
this is what the df looks like
Date_Time S C P
2016-08-02 21:14:52 20 1 1
2016-08-02 21:26:37 35 1 2
2016-09-07 21:31:33 28 1 8
2016-08-25 21:46:16 23 3 4
2016-08-24 21:54:23 40 1 6
If I were to set the df to be between 21:00:00 - 21:30:00 it would look like:
Date_Time S C P
2016-08-02 21:14:52 20 1 1
2016-08-02 21:26:37 35 1 2
I'm new with r and coding so any help would be appreciated!