modify_column_indent {gtsummary} | R Documentation |
Add, increase, or reduce indentation for columns.
modify_column_indent(x, columns, rows = NULL, indent = 4L, double_indent, undo)
x |
( |
columns |
( |
rows |
(predicate |
indent |
( |
double_indent , undo |
a gtsummary table
Other Advanced modifiers:
modify_column_merge()
,
modify_table_styling()
# remove indentation from `tbl_summary()`
trial |>
tbl_summary(include = grade) |>
modify_column_indent(columns = label, indent = 0L)
# increase indentation in `tbl_summary`
trial |>
tbl_summary(include = grade) |>
modify_column_indent(columns = label, rows = !row_type %in% 'label', indent = 8L)