Skip to contents

A gt theme to be applied to a reshaped data frame for the creation of MDB tables. The theme formats all columns and rows for the main MDB tables. A different theme exists for the main tables as the layout is different.

Usage

mdb_treatment_theme(df, ...)

Arguments

df

a dataframe from reshape_mdb_tx_df() output

...

dot-dot-dot option to pass additional formatting to gt object

Value

formatted gt object

See also

Other MDB gt themes: mdb_main_theme()

Examples

if (FALSE) {
 mdb_df <- make_mdb_tx_df(ou_im, resolve_issues = F)
 mdb_tbl <- reshape_mdb_tx_df(mdb_df)
 numeric_cols <- mdb_tbl %>% select_if(is.numeric) %>% names()
 mdb_tbl %>% filter(operatingunit == "Zambia") %>% 
 gt(groupname_col = "agency") %>% 
 mdb_treatment_theme(numeric_cols)
 
 }