months_to_quarters: Aggregate monthly data to quarterly data

Description Usage Arguments

View source: R/months_to_quarters.R

Description

months_to_quarters takes a monthly dataset and sums up a given variable to the quarterly level.

Usage

1
2
months_to_quarters(monthly_data, month_var, collapse_by, collapse_var,
  weights = F)

Arguments

monthly_data

Dataset on month-level (data.table)

month_var

The name of the month variable in monthly_data (character)

collapse_by

The name(s) of the variable(s) that help define the collapse (in addition to the seasons). Ideally, these variables will be unique on the quarter-level (character)

collapse_var

The name of the variable to be summed up over the seasons (character)

weights

Not currently in use.


johnnybonney/sales.taxes documentation built on Dec. 14, 2018, 3:03 p.m.