pt_word_table: Create Standard Flextable in Word

View source: R/flex_tables.R

pt_word_tableR Documentation

Create Standard Flextable in Word

Description

Creates standard budget flextable for output to Word documents

Usage

pt_word_table(
  df,
  rowvec = NULL,
  colvec = NULL,
  calcrow = F,
  .ptsavename = NULL,
  .caption = NULL,
  deptadjust = F
)

Arguments

df

Budget dataframe to represent in flextable

rowvec

Columns of budget dataframe to add as groups in flextable; default NULL, for none

colvec

Columns of budget dataframe to add as columns in flextable; default NULL, for none

calcrow

Whether to represent year columns in rows of flextable; default F, for not

.ptsavename

Name of file to save pivot table as Excel document; default NULL, so not saved

.caption

Caption of flextable; default NULL, so no caption added

deptadjust

Whether including adotped budget information and comparisons for sharing of table with departments; default F, so adopted budget information excluded

Value

Flextable of budget data styled in standard format


dpowerstp/tpbudget documentation built on June 3, 2022, 1:41 a.m.