I want to aggregate data by hourly mean. Daily is very easy:
apply.daily(X2,mean)
Why is there no function for hourly? I tried
try
period.apply(X2, endpoints(X2, "hours"), mean)
apply.daily is simply a wrapper for the above:
apply.daily
> apply.daily function (x, FUN, ...) { ep <- endpoints(x, "days") period.apply(x, ep, FUN, ...) }