Skip to content

Dividing tick-data into intervalls

3 messages · osvald wiklander, Milan Bouchet-Valat, R. Michael Weylandt

#
Le mardi 08 mai 2012 ? 10:44 +0200, osvald wiklander a ?crit :
I think you should create a zoo object (from package zoo) from your
data, and use aggregate() on it (see ?aggregate.zoo).


My two cents
#
Are you the oswi who just asked a very similar question?

Regardless, as Josh said, the high-performance way to do this is to
use the specialty C code available through the xts package and the
to.period() functions, specifically to.minutes5

Michael
On Tue, May 8, 2012 at 8:48 AM, Milan Bouchet-Valat <nalimilan at club.fr> wrote: