powered by
lifecycle::badge("maturing") Update column alignment/justification in a gtsummary table.
modify_column_alignment(x, columns, align = c("left", "right", "center"))
gtsummary object
vector or selector of columns in x$table_body
x$table_body
string indicating alignment of column, must be one of c("left", "right", "center")
c("left", "right", "center")
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()
modify_column_hide()
modify_column_indent()
modify_column_merge()
modify_fmt_fun()
modify_table_body()
modify_table_styling()
# \donttest{ # Example 1 ---------------------------------- tbl <- lm(age ~ marker + grade, trial) %>% tbl_regression() %>% modify_column_alignment(columns = everything(), align = "left") # }
Run the code above in your browser using DataLab