aggTS: Aggregate data.frame time series to other time periods

Description Usage Arguments Details Value References Examples

View source: R/help_funcs.R

Description

test

Usage

1
2
aggTS(timeseries_data, newPeriod, fun = "sum", time_offset = 0,
  conserve_columns = NA)

Arguments

timeseries_data

data.frame, formatted with columns [datetime, values].

newPeriod

charater string, options are "hourly", "daily", "weekly".

fun

character string, indicating aggregation function.

time_offset

integer, indicating the offset to include in the aggregation. Units are with respect to declared new period.

Details

Convention for setting dates corresponding to new period: POSIXct is always used from the LAST hour, day, etc. of the aggregation period.

Value

test

References

Marvin Reich (2018), mreich@posteo.de

Examples

1

marcianito/hygra documentation built on Aug. 3, 2020, 7:47 p.m.