Update column alignment/justification in a gtsummary table.
Usage
modify_column_alignment(x, columns, align = c("left", "right", "center"))
Arguments
- x
(
gtsummary
)
gtsummary object- columns
(
tidy-select
)
Selector of columns inx$table_body
- align
(
string
) String indicating alignment of column, must be one ofc("left", "right", "center")
Examples
# Example 1 ----------------------------------
lm(age ~ marker + grade, trial) %>%
tbl_regression() %>%
modify_column_alignment(columns = everything(), align = "left")
Characteristic
Beta
95% CI1
p-value
1 CI = Confidence Interval