powered by
Add/Remove Indentation
modify_column_indent( x, columns, rows = NULL, double_indent = FALSE, undo = FALSE )
a gtsummary table
columns to add indentation to
predicate expression to select rows to indent. Default is NULL, indicating all rows
NULL
logical indicating whether to double indent the cells. Default is FALSE for a single indentation
FALSE
logical indicating whether an indentation should be removed/undone. Default is FALSE
Other Advanced modifiers: modify_column_alignment(), modify_column_hide(), modify_column_merge(), modify_fmt_fun(), modify_table_body(), modify_table_styling()
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)
Run the code above in your browser using DataLab