Function converts a gtsummary object to a
that is, a table created with
Function is used in the background when the results are printed or knit.
A user can use this function if they wish to add customized formatting
available via the gt package.
as_gt(x, include = everything(), return_calls = FALSE, ..., exclude = NULL)
Object created by a function from the gtsummary package (e.g. tbl_summary or tbl_regression)
Commands to include in output. Input may be a vector of
quoted or unquoted names. tidyselect and gtsummary select helper
functions are also accepted.
Logical. Default is
Arguments passed on to gt::gt
Daniel D. Sjoberg
Other gtsummary output types:
# Example 1 ---------------------------------- as_gt_ex1 <- trial[c("trt", "age", "response", "grade")] %>% tbl_summary(by = trt) %>% as_gt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.