gtsummary (version 1.3.6)

modify_column_hide: Modify Hidden Columns

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab