tbr_sum_window: Sum Based on a Time-Window

Description Usage Arguments Value

View source: R/tbr_sum.R

Description

Sum Based on a Time-Window

Usage

1
tbr_sum_window(x, tcolumn, unit = "years", n, i, na.rm)

Arguments

x

column containing the values to calculate the sum.

tcolumn

formatted time column.

unit

character, one of "years", "months", "weeks", "days", "hours", "minutes", "seconds"

n

numeric, describing the length of the time window.

i

row

na.rm

logical. Should missing values be removed?

Value

numeric value


tbrf documentation built on April 14, 2020, 7:10 p.m.