Add, increase, or reduce indentation for columns.
modify_column_indent(x, columns, rows = NULL, indent = 4L, double_indent, undo)
(gtsummary
)
gtsummary object
(tidy-select
)
Selector of columns in x$table_body
(predicate expression
)
Predicate expression to select rows in x$table_body
.
Can be used to style footnote, formatting functions, missing symbols,
and text formatting. Default is NULL
. See details below.
(integer
)
An integer indicating how many space to indent text
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)
Characteristic
N = 2001
1 n (%)
# increase indentation in `tbl_summary`
trial |>
tbl_summary(include = grade) |>
modify_column_indent(columns = label, rows = !row_type %in% 'label', indent = 8L)
Characteristic
N = 2001
1 n (%)