bold_column: Bold columns inside gt objects Helper function to quickly...

View source: R/gt_helpers.R

bold_columnR Documentation

Bold columns inside gt objects Helper function to quickly make columns within table bold

Description

Bold columns inside gt objects Helper function to quickly make columns within table bold

Usage

bold_column(gt_obj, col, wt = 700)

Arguments

gt_obj

gt object to be bolded

col

column or columns to be bolded

wt

weight of boldness can be lighter, normal, bold, or bolder or 0-1000

Value

a modified gt object

Examples

## Not run: 
 mtcars %>% 
 gt(groupname_col  = "cyl") %>% 
 bold_column(c(mpg, hp, drat, carb), wt = "bolder")
 
## End(Not run)

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