View source: R/modify_column_indent.R
modify_column_indent | R Documentation |
Add/Remove Indentation
modify_column_indent(
x,
columns,
rows = NULL,
double_indent = FALSE,
undo = FALSE
)
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 |
a gtsummary table
Other Advanced modifiers:
modify_column_alignment()
,
modify_column_hide()
,
modify_column_merge()
,
modify_fmt_fun()
,
modify_table_body()
,
modify_table_styling()
# remove indentation from `tbl_summary()`
modify_column_indent_ex1 <-
trial %>%
select(grade) %>%
tbl_summary() %>%
modify_column_indent(columns = label, undo = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.