Skip to contents

Aggregates temporal data to a coarser time resolution

Usage

aggregate_temporal(data, method = "sum", time_unit)

Arguments

data

A data frame containing temporal data

method

Aggregation method (e.g., "sum", "mean")

time_unit

The target time unit for aggregation (e.g., "week", "month")

Value

Aggregated temporal data

Examples

if (FALSE) { # \dontrun{
aggregated <- aggregate_temporal(data, "sum", "week")
} # }