[R] splitting time vector into days

stephen sefick ssefick at gmail.com
Tue Sep 9 22:33:08 CEST 2008


?aggregate
?window.zoo
?rollapply

anyway have a look at package zoo

On Tue, Sep 9, 2008 at 3:25 PM, Alexy Khrabrov <deliverable at gmail.com> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.

	-K. Mullis



More information about the R-help mailing list