View source: R/use_varnames_as_labels.R
use_varnames_as_labels | R Documentation |
Use Variable Names as Labels
use_varnames_as_labels(data, caps = NULL, exclude = NULL)
data |
a data frame |
caps |
variables to be entirely capitalized |
exclude |
variables to exclude from labeling |
a labeled data frame
library(gtsummary)
mtcars %>%
select(mpg, cyl, vs, am, carb) %>%
use_varnames_as_labels(caps = c(mpg, vs, am), exclude = cyl) %>%
tbl_summary() %>%
as_kable(format = "simple")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.