[Maturing] Update column alignment/justification in a gtsummary table.

modify_column_alignment(x, columns, align = c("left", "right", "center"))

Arguments

x

gtsummary object

columns

vector or selector of columns in x$table_body

align

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

Examples

# Example 1 ----------------------------------
tbl <-
  lm(age ~ marker + grade, trial) %>%
  tbl_regression() %>%
  modify_column_alignment(columns = everything(), align = "left")