Learn R Programming

tv (version 2.0.2)

tv_aggregation: Time-varying aggregation functions

Description

Time-varying aggregation functions

Usage

tv_count(value, ...)

tv_any(value, ...)

tv_lvcf(value, datetime, ...)

tv_ts(datetime, current_time, ...)

tv_min(value, ...)

tv_max(value, ...)

tv_mean(value, ...)

tv_median(value, ...)

tv_sum(value, ...)

Value

A scalar, indicating the corresponding aggregation over value or datetime.

Arguments

value

A vector of values

...

Other arguments (not used at this time)

datetime

A datetime

current_time

The current grid row's time