Italicize or unitalicize levels for fmt_regression objects in Rmarkdown

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

Arguments

x

fmt_regression object

...

further arguments passed to or from other methods

Examples

lm(hp ~ factor(cyl), mtcars) %>% fmt_regression() %>% italicize_levels()
#> #> N = 32 Coefficient 95% CI p-value #> factor(cyl) #> _4_ Ref. #> _6_ 39.6 2.15, 77.1 0.039 #> _8_ 127 95.3, 158 <0.001