Use these functions to hide or unhide columns in a gtsummary table.
Use show_header_names(show_hidden=TRUE)
to print available columns to update.
Arguments
- x
(
gtsummary
)
gtsummary object- columns
(
tidy-select
)
Selector of columns inx$table_body
Examples
# Example 1 ----------------------------------
# hide 95% CI, and replace with standard error
lm(age ~ marker + grade, trial) |>
tbl_regression() |>
modify_column_hide(conf.low) |>
modify_column_unhide(columns = std.error)
Characteristic
Beta
SE1
p-value
1 SE = Standard Error