Skip to content
Back to formatted view

Raw Message

Message-ID: <1E12D6B1-6B4E-40C8-BE42-1FD513575B9D@gmail.com>
Date: 2008-09-09T19:25:25Z
From: Alexy Khrabrov
Subject: splitting time vector into days

Greetings -- I have a dataframe a with one element a vector, time, of  
POSIXct values.  What's a good way to split the data frame into  
periods of a$time, e.g. days, and apply a function, e.g. mean, to some  
other column of the dataframe, e.g. a$value?

Cheers,
Alexy