modify_column_indent: Add/Remove Indentation

View source: R/modify_column_indent.R

modify_column_indentR Documentation

Add/Remove Indentation

Description

Add/Remove Indentation

Usage

modify_column_indent(
  x,
  columns,
  rows = NULL,
  double_indent = FALSE,
  undo = FALSE
)

Arguments

x

a gtsummary table

columns

columns to add indentation to

rows

predicate expression to select rows to indent. Default is NULL, indicating all rows

double_indent

logical indicating whether to double indent the cells. Default is FALSE for a single indentation

undo

logical indicating whether an indentation should be removed/undone. Default is FALSE

Value

a gtsummary table

See Also

Other Advanced modifiers: modify_column_alignment(), modify_column_hide(), modify_column_merge(), modify_fmt_fun(), modify_table_body(), modify_table_styling()

Examples

# remove indentation from `tbl_summary()`
modify_column_indent_ex1 <-
  trial %>%
  select(grade) %>%
  tbl_summary() %>%
  modify_column_indent(columns = label, undo = TRUE)

gtsummary documentation built on July 26, 2023, 5:27 p.m.