My data has information on time interval and activity during that time (indicated by 1,0). For example,
ID# Time_Start Time_End Activity
1 10:05:58 10:07:11 1
1 10:07:12 10:10:01 0
I would like to round the time to nearest minute and convert this data to minute by minute data. For example,
ID# Time Activity
1 10:05 1
1 10:06 1
1 10:07 1
1 10:08 0
1 10:09 0
How would I convert this in R?