Add, increase, or reduce indentation for columns.
Arguments
- x
(
gtsummary
)
gtsummary object- columns
(
tidy-select
)
Selector of columns inx$table_body
- rows
(predicate
expression
)
Predicate expression to select rows inx$table_body
. Can be used to style footnote, formatting functions, missing symbols, and text formatting. Default isNULL
. See details below.- indent
(
integer
)
An integer indicating how many space to indent text- double_indent, undo
See also
Other Advanced modifiers:
modify_column_merge()
,
modify_table_styling()
Examples
# remove indentation from `tbl_summary()`
trial |>
tbl_summary(include = grade) |>
modify_indent(columns = label, indent = 0L)
Characteristic
N = 2001
1 n (%)
# increase indentation in `tbl_summary`
trial |>
tbl_summary(include = grade) |>
modify_indent(columns = label, rows = !row_type %in% 'label', indent = 8L)
Characteristic
N = 2001
1 n (%)