Experimental lifecycle Use these functions to hide or unhide columns in a gtsummary tables.

modify_column_hide(x, column)

modify_column_unhide(x, column)

Arguments

x

gtsummary object

column

vector or selector of columns in x$table_body

Example Output

Example 1

Examples

# Example 1 ---------------------------------- # hide 95% CI, and replace with standard error modify_column_hide_ex1 <- lm(age ~ marker + grade, trial) %>% tbl_regression() %>% modify_column_hide(column = ci) %>% modify_column_unhide(column = std.error)