Skip to contents

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

if (FALSE) {
 mtcars %>% 
 gt(groupname_col  = "cyl") %>% 
 bold_column(c(mpg, hp, drat, carb), wt = "bolder")
 }