I have a xts object with minute prices for each day, as below. I would like to aggregate these time series so I have a table with rowname equal to time hh:mm:ss (no day, month, year) and multiple columns for each statistic I want to calculate.
ESH4.Open ESH4.High ESH4.Low ESH4.Close ESH4.Volume
2014-03-05 18:00:00 1873.75 1874.00 1873.50 1873.50 452
2014-03-05 18:01:00 1873.50 1873.75 1873.25 1873.50 453
2014-03-05 18:02:00 1873.25 1873.50 1873.25 1873.25 61
2014-03-05 18:03:00 1873.50 1873.50 1873.25 1873.25 21
2014-03-05 18:04:00 1873.50 1873.50 1873.00 1873.25 456
2014-03-05 18:05:00 1873.00 1873.25 1872.25 1872.25 1004
2014-03-05 18:06:00 1872.50 1872.75 1872.25 1872.75 98
2014-03-05 18:07:00 1872.50 1872.75 1872.25 1872.50 361
2014-03-05 18:08:00 1872.25 1872.25 1871.75 1871.75 476
2014-03-05 18:09:00 1871.75 1872.25 1871.75 1872.25 177
Need for ESH4.Close
column:
stat1 stat2 stat3
18:01:00 ...
18:02:00 ...
18:03:00 ...