Displaying 1 result from an estimated 1 matches for "chronaggreg".
2001 Oct 30
2
creating chron object aggregates (e.g. sums by day)
.../01 1000
4 07/13/01 800
5 07/13/01 700
6 07/16/01 600
7 07/17/01 500
I'm trying to construct a function that would first aggregate the data
(second column) by day (grouping by the first column) according to a
function (here "sum", but could be "max" or other)
>chronaggregate(raw.data, sum, "days") #(used "days" since 07/09/01 is
short for 07/09/01 00:00:00, but could be 07/09/01 00:12:34)
1 07/09/01 6000 << sum of data values for day 07/09/01 from
raw.data
2 07/11/01 1000
3 07/13/01 1500 << sum of data values for day...