Saves a gtsummary table as a Word, PDF, or HTML file
Usage
save_table(tbl, filename = "table", format = c("docx", "pdf", "html"))
Examples
# \donttest{
model <- glm(mpg ~ hp + wt, data = mtcars)
tbl <- gtsummary::tbl_regression(model)
save_table(tbl, filename = file.path(tempdir(), "regression_table"), format = "docx")
#> Table saved at: /tmp/Rtmp9h6NFv/regression_table.docx
# }