modify_missing_symbol {gtsummary} | R Documentation |
Modify Missing Substitution
Description
Specify how missing values will be represented in the printed table.
By default, a blank space is printed for all NA
values.
Usage
modify_missing_symbol(x, symbol, columns, rows)
Arguments
x |
( |
symbol |
( |
columns |
( |
rows |
(predicate |
Value
Updated gtsummary object
Examples
# Use the abbreivation "Ref." for reference rows instead of the em-dash
lm(marker ~ trt, data = trial) |>
tbl_regression() |>
modify_missing_symbol(
symbol = "Ref.",
columns = c(estimate, conf.low, conf.high),
rows = reference_row == TRUE
)
[Package gtsummary version 2.3.0 Index]