modify_column_hide: Modify Hidden Columns

View source: R/modify_column_hide.R

modify_column_hideR Documentation

Modify Hidden Columns

Description

\lifecycle

maturing Use these functions to hide or unhide columns in a gtsummary table.

Usage

modify_column_hide(x, columns)

modify_column_unhide(x, columns)

Arguments

x

gtsummary object

columns

vector or selector of columns in x$table_body

Example Output

Example 1

image of rendered example table

See Also

Review list, formula, and selector syntax used throughout gtsummary

Other Advanced modifiers: modify_column_alignment(), modify_column_indent(), modify_column_merge(), modify_fmt_fun(), modify_table_body(), modify_table_styling()

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(columns = ci) %>%
  modify_column_unhide(columns = std.error)


gtsummary documentation built on Jan. 13, 2023, 9:10 a.m.