What is an efficient method for partitioning and aggregating intervals from timestamped rows in a da
Posted
by mattrepl
on Stack Overflow
See other posts from Stack Overflow
or by mattrepl
Published on 2010-03-14T04:04:24Z
Indexed on
2010/03/14
4:15 UTC
Read the original article
Hit count: 373
From a data frame with timestamped rows (strptime results), what is the best method for aggregating statistics for intervals?
Intervals could be an hour, a day, etc.
I've found the aggregate
function, but that doesn't help with assigning each row to an interval. I'm planning on adding a column to the data frame that denotes interval and using that with aggregate
, but if there's a better solution it'd be great to hear it.
Thanks for any pointers!
© Stack Overflow or respective owner