aggr.time2: Aggregate data over time. Much faster than version 1, but...

Description Usage Arguments Value Author(s)

Description

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.

Usage

1
aggr.time2(dat, by, f = "mean")

Arguments

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

Value

A list containing the $data and the coresponding $posix dates (*first* moment of day/week/month/year is given)

Author(s)

Wim Verbruggen


wimverbruggen/baseExtended documentation built on May 7, 2019, 10:53 p.m.