modify_caption {gtsummary} | R Documentation |
Modify table caption
Description
Captions are assigned based on output type.
-
gt::gt(caption=)
-
flextable::set_caption(caption=)
-
huxtable::set_caption(value=)
-
knitr::kable(caption=)
Usage
modify_caption(x, caption, text_interpret = c("md", "html"))
Arguments
x |
( |
caption |
( |
text_interpret |
( |
Value
Updated gtsummary object
Examples
trial |>
tbl_summary(by = trt, include = c(marker, stage)) |>
modify_caption(caption = "**Baseline Characteristics** N = {N}")
[Package gtsummary version 2.0.0 Index]