在下面的示例 xts 数据中,我展示了一小部分日内数据。
my.temp <- structure(c(1134.65, 45665.2, 63639.8, 262817.8, 71898.4, 128737,
641741.8, 6090, 7561.5, 3954.73, 15733.2, 274.88, 824.64, 1099.52, 1924.16,
348715, 196425, 113975, 215825, 38340, 21138, 12020, 20200, 20200, 20200,
20200, 20200, 20200, 23000, 12020, 12020, 12020, 12020, 12020, 12020, 12020,
20200, 20200, 20200, 20200, 12020, 20000), .Dim = c(21L, 2L),
.Dimnames = list(NULL, c("VALUE", "USAP")), index = structure(c(1378130401,
1378130404, 1378130404, 1378130404, 1378130404, 1378130404, 1378130404,
1378130404, 1378130406, 1378130409, 1378130411, 1378130415, 1378130415,
1378130415, 1378130415, 1378130451, 1378130452, 1378130452, 1378130452,
1378130455, 1378130501), tzone = "", tclass = c("POSIXct", "POSIXt")),
.indexCLASS = c("POSIXct", "POSIXt"), tclass = c("POSIXct", "POSIXt"),
.indexTZ = "", tzone = "", class = c("xts", "zoo"))
我试图显示每个 USAP 的总价值。aggregate
如果我想在整个期间显示结果,我已经成功使用了该功能。如何显示每天每个 USAP 的总数?