I have data in the following format, measured in an interval of an hour. Date Restaurant id Food Code Average Order 1/1/2017 0:00 101 1 0.004 1/1/2017 1:00 101 1 0.004 1/1/2017 2:00 101 1 0.004 1/1/2017 3:00 101 1 0.004 1/1/2017 4:00 101 1 0.003 1/1/2017 5:00 101 1 0.003 1/1/2017 6:00 101 1 0.003 1/1/2017 7:00 101 1 0.003 1/1/2017 8:00 101 1 0.004 1/1/2017 9:00 101 1 0.003 1/1/2017 10:00 101 1 0.004 1/1/2017 11:00 101 1 0.004 1/1/2017 12:00 101 1 0.004 1/1/2017 13:00 101 1 0.005 1/1/2017 14:00 101 1 0.006 1/1/2017 15:00 101 1 0.006 1/1/2017 16:00 101 1 0.006 1/1/2017 17:00 101 1 0.005 1/1/2017 18:00 101 1 0.005 1/1/2017 19:00 101 1 0.005 1/1/2017 20:00 101 1 0.004 1/1/2017 21:00 101 1 0.004 1/1/2017 22:00 101 1 0.004 1/1/2017 23:00 101 1 0.004 I am trying to merge each 24-hour event into a single event and take an average of the average order. The output should be like this: Date Restaurant id Food Code Average Order 1/1/2017 101 1 0.003 I tried using a time chart, bin every time I get all 24 rows. Since I have data measured every hour which is too specific, I want to turn it to a day interval instead and take the average for the average order. Help would be highly appreciated.
... View more