How to aggregate hourly values into 24h-average means without timestamp
问题 I have 'mydata_hourly' with 3 station (actually more) and their hourly temperature values over one year. This gives me 8760 hourly measurements in one year. Now I want to have the same structure but with the (365) 24h-average means 'mydata_daily'. I have tried something with a for loop, this didn't work out. I have heard something about an aggregate function. I found something with a timestamp, what I don't have unfortunately. . my_data_hourly <- structure(c(8.29, 7.96, 8.14, 7.27, 7.37, 7.3,