mdb_main_theme: GT theme for main MDB tables

View source: R/mdb_main_theme.R

mdb_main_themeR Documentation

GT theme for main MDB tables

Description

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 treatment tables as the layout is different.

Usage

mdb_main_theme(df, ...)

Arguments

df

reshape_mdb_df() output

...

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

Value

formatted gt object

See Also

Other MDB gt themes: mdb_treatment_theme()

Examples

## Not run: 
 mdb_df <- make_mdb_df(ou_im, resolve_issues = F)
 mdb_tbl <- reshape_mdb_df(mdb_df)
 mdb_tbl %>% filter(operatingunit == "Zambia") %>% gt(groupname_col = "agency") %>% mdb_main_theme()
 
 
## End(Not run)

USAID-OHA-SI/selfdestructin5 documentation built on Feb. 23, 2025, 5:08 a.m.