modify_column_indent {gtsummary} | R Documentation |
Add/Remove Indentation
Description
Add/Remove Indentation
Usage
modify_column_indent(
x,
columns,
rows = NULL,
double_indent = FALSE,
undo = FALSE
)
Arguments
x |
a gtsummary table |
columns |
columns to add indentation to |
rows |
predicate expression to select rows to indent. Default is |
double_indent |
logical indicating whether to double indent the cells.
Default is |
undo |
logical indicating whether an indentation should be removed/undone.
Default is |
Value
a gtsummary table
See Also
Other Advanced modifiers:
modify_column_alignment()
,
modify_column_hide()
,
modify_column_merge()
,
modify_fmt_fun()
,
modify_table_body()
,
modify_table_styling()
Examples
# remove indentation from `tbl_summary()`
modify_column_indent_ex1 <-
trial %>%
select(grade) %>%
tbl_summary() %>%
modify_column_indent(columns = label, undo = TRUE)
[Package gtsummary version 1.7.2 Index]