I have data that includes variables for the hour, minute, and second for each observation. I want to count the number of observations until 3 in the morning, all observations until 6 in the morning, all observations until 9 in the morning, etc. Any help on this would be greatly appreciated.
Sample data:
day hour minute second 01 17 10 03 01 17 14 20 01 17 25 27 01 17 32 39 01 17 33 40 01 17 34 10 01 17 34 14 01 17 34 16 01 17 34 21 01 17 34 23 01 17 34 25 01 17 34 31 01 17 34 36
I have about 300,000 observations like this.
hour: int 17 17 17 17 17 17 17 17 17 17 17
minute: int 10 14 25 32 33 34 34 34 34 34
second: int 3 20 27 39 40 10 14 16 21 23
source share