Italicize or unitalicize levels for fmt_table1 objects in Rmarkdown

# S3 method for fmt_table1
italicize_levels(x, ...)

Arguments

x

fmt_table1 object

...

further arguments passed to or from other methods

Examples

trial %>% fmt_table1() %>% italicize_levels()
#> #> Variable N = 200 #> Treatment Randomization #> _Drug_ 107 (54%) #> _Placebo_ 93 (46%) #> Age, yrs 47 (38, 57) #> _Unknown_ 8 #> Marker Level, ng/mL 0.68 (0.22, 1.42) #> _Unknown_ 8 #> T Stage #> _T1_ 51 (26%) #> _T2_ 49 (24%) #> _T3_ 42 (21%) #> _T4_ 58 (29%) #> Grade #> _I_ 67 (34%) #> _II_ 58 (29%) #> _III_ 75 (38%) #> Tumor Response 82 (43%) #> _Unknown_ 9