View source: R/modify_column_alignment.R
modify_column_alignment | R Documentation |
maturing Update column alignment/justification in a gtsummary table.
modify_column_alignment(x, columns, align = c("left", "right", "center"))
x |
gtsummary object |
columns |
vector or selector of columns in |
align |
string indicating alignment of column, must be one of
|
Review list, formula, and selector syntax used throughout gtsummary
Other Advanced modifiers:
modify_column_hide()
,
modify_column_indent()
,
modify_column_merge()
,
modify_fmt_fun()
,
modify_table_body()
,
modify_table_styling()
# Example 1 ----------------------------------
tbl <-
lm(age ~ marker + grade, trial) %>%
tbl_regression() %>%
modify_column_alignment(columns = everything(), align = "left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.