Thank you so much for the reply. The problem is I have thousands of participants and each of them have data counts per min for 24 hours and 7 days. I didn't quite understand the "ID= A B" part in the codes. Thanks again. best
... View more
I have a longitudinal data set where one participant have counts for each minute for 24 hours a day and seven days in total. I am just wonder How could I aggregate the data into per hour. Thanks!
... View more