Description Usage Arguments Value Author(s)
Aggregate data over time. Much faster than version 1, but that one is kept for backwards compatibility. This will aggregate *all* fields in the dataframe, except the POSIX. NA values will be omitted.
1 | aggr.time2(dat, by, f = "mean")
|
dat |
(data) Dataframe containing everything (data,posix) |
by |
(string) A time interval. Possible values: day, week, month, year |
f |
(string) A function. Possible values: mean (default), sum, max, min, sd |
A list containing the $data and the coresponding $posix dates (*first* moment of day/week/month/year is given)
Wim Verbruggen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.