modify_abbreviation {gtsummary} | R Documentation |
Modify Abbreviations
Description
All abbreviations will be coalesced when printing the final table into a single source note.
Usage
modify_abbreviation(x, abbreviation, text_interpret = c("md", "html"))
remove_abbreviation(x, abbreviation = NULL)
Arguments
x |
( |
abbreviation |
( |
text_interpret |
( |
Value
Updated gtsummary object
Examples
# Example 1 ----------------------------------
tbl_summary(
trial,
by = trt,
include = age,
type = age ~ "continuous2"
) |>
modify_table_body(~dplyr::mutate(.x, label = sub("Q1, Q3", "IQR", x = label))) |>
modify_abbreviation("IQR = Interquartile Range")
# Example 2 ----------------------------------
lm(marker ~ trt, trial) |>
tbl_regression() |>
remove_abbreviation("CI = Confidence Interval")
[Package gtsummary version 2.3.0 Index]