Skip to contents

Create a new time column for aggregation

Usage

time_transform(x, time_divisor = 1, baseline_t = 0)

Arguments

x

Input data.frame

time_divisor

Aggregation level. Default = 1 (no aggregation). Setting to 365 would allow annual aggregation, 30 monthly, 7 weekly etc.

baseline_t

A baseline time to add to the time output