If you use data.tableand lubridate, it might look something like this.
library(data.table)
library(lubridate)
dt<-data.table(ts=seq(from=ymd('2015-01-01'), to=ymd('2015-07-01'),by='mins'), datum=runif(260641,0,100))
if you want to get data from a minute to an hour, you can do
dt[,mean(datum),by=floor_date(ts,"hour")]
, , ,
dt[,lapply(.SD,mean),by=floor_date(ts,"hour")]
mean . "" "", "", "", "", "", "", "". , , , .
- .. 5- , .
-Jeffrey Ryan xts.
xts, , xts, (, , )