Skip to content
Prev 294654 / 398503 Next

How to sum and group data by DATE in data frame

Thank you for your help, Michael.

I used *aggregate(x, by = timeSequence(by = "day"), FUN = sum)* but the
results is very different from *sum(x[1:13])*, where 13 is the number of
daily observations I've sampled.

Michael Weylandt wrote
--
View this message in context: http://r.789695.n4.nabble.com/How-to-sum-and-group-data-by-DATE-in-data-frame-tp903708p4630139.html
Sent from the R help mailing list archive at Nabble.com.