modify_column_hide: Modify Hidden Columns

Description Usage Arguments Example Output Examples

View source: R/modify_column_hide.R

Description

\lifecycle

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

Usage

1
2
3
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

Examples

1
2
3
4
5
6
7
# 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)

ddsjoberg/gtsummary documentation built on April 8, 2021, 5:48 a.m.