powered by
Function converts gtsummary objects to a knitr_kable objects. This 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 knitr::kable.
as_kable(x, include = NULL, exclude = NULL, ...)
Object created by a function from the gtsummary package (e.g. tbl_summary or tbl_regression)
Character vector naming kable commands to include in printing. Default is NULL, which utilizes all commands in x$kable_calls.
NULL
x$kable_calls
Character vector naming kable commands to exclude in printing. Default is NULL.
Additional arguments passed to knitr::kable
A knitr_kable object
knitr_kable
tbl_summary tbl_regression tbl_uvregression tbl_survival
# NOT RUN { trial %>% tbl_summary(by = trt) %>% as_kable() # }
Run the code above in your browser using DataLab