Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

modify_table_header

Modify table_header


Description

[Deprecated] Use modify_table_styling() instead.

Usage

modify_table_header(
  x,
  column,
  label = NULL,
  hide = NULL,
  align = NULL,
  missing_emdash = NULL,
  indent = NULL,
  text_interpret = NULL,
  bold = NULL,
  italic = NULL,
  fmt_fun = NULL,
  footnote_abbrev = NULL,
  footnote = NULL,
  spanning_header = NULL
)

Arguments

x

gtsummary object

column

vector or selector of columns in x$table_body

label

string of column label

hide

logical indicating whether to hide column from output

align

string indicating alignment of column, must be one of c("left", "right", "center")

missing_emdash

string that evaluates to logical identifying rows to include em-dash for missing values, e.g. "reference_row == TRUE"

indent

string that evaluates to logical identifying rows to indent

text_interpret

string, must be one of "gt::md" or "gt::html"

bold

string that evaluates to logical identifying rows to bold

italic

string that evaluates to logical identifying rows to italicize

fmt_fun

function that formats the statistics in the column

footnote_abbrev

string with abbreviation definition, e.g. "CI = Confidence Interval"

footnote

string with text for column footnote

spanning_header

string with text for spanning header


gtsummary

Presentation-Ready Data Summary and Analytic Result Tables

v1.4.0
MIT + file LICENSE
Authors
Daniel D. Sjoberg [aut, cre] (<https://orcid.org/0000-0003-0862-2018>), Michael Curry [aut] (<https://orcid.org/0000-0002-0261-4044>), Margie Hannum [aut] (<https://orcid.org/0000-0002-2953-0449>), Joseph Larmarange [aut] (<https://orcid.org/0000-0001-7097-700X>), Karissa Whiting [aut] (<https://orcid.org/0000-0002-4683-1868>), Emily C. Zabor [aut] (<https://orcid.org/0000-0002-1402-4498>), Esther Drill [ctb] (<https://orcid.org/0000-0002-3315-4538>), Jessica Flynn [ctb] (<https://orcid.org/0000-0001-8310-6684>), Jessica Lavery [ctb] (<https://orcid.org/0000-0002-2746-5647>), Stephanie Lobaugh [ctb], Gustavo Zapata Wainberg [ctb] (<https://orcid.org/0000-0002-2524-3637>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.