time_aggregate: Aggregate ledger data.frames by time blocks

Description Usage Arguments Value Examples

Description

Aggregate data by time blocks. Currently only supports daily.

Usage

1
time_aggregate(data, cumulative = FALSE, aggregate = "day", split = FALSE)

Arguments

data,

the data file (usually produced by read_ledger)

cumulative

should a cumulative sum be added? defaults to FALSE

aggregate

string indicating what level to aggregate to. See lubridate::floor_date for supported units. Defaults to "day".

Value

a tibble (data.frame)

Examples

1
2
3
demo <- system.file("extdata", "demo.ledger", package="ledgerReports")
ledge <- read_ledger("'^assets' '^liab' -X $", file = demo)
time_aggregate(ledge, cumulative = TRUE)

jabranham/ledgerReports documentation built on May 7, 2019, 10:39 a.m.