apply_kpi_formatting: Apply formatting to a KPI flextable, using functions from the...

Description Usage Arguments Value

Description

Apply formatting to a KPI flextable, using functions from the scales package

Usage

1
2
3
apply_kpi_formatting(flextable, actuals_cols = NULL, delta_cols = NULL,
  comma_rows = NULL, percent_rows = NULL, dollar_rows = NULL,
  cents_rows = NULL, decimal_rows = NULL)

Arguments

flextable

an object from ReporteRs::FlexTable()

actuals_cols

vector of indices for columns showing actual performance (not deltas)

delta_cols

vector of indices for columns showing pct deltas (all percents)

comma_rows

vector of row indices that should apply scales::comma()

percent_rows

vector of row indices that should apply scales::percent()

dollar_rows

vector of row indices that should apply scales::dollar()

cents_rows

vector of row indices that should apply scales::dollar() with cents

decimal_rows

vector of row indices that should have comma-delimited thousands and also 2 decimal places

Value

flextable


brianwonch/mediamunger documentation built on May 13, 2019, 7:42 a.m.