View source: R/remove_row_type.R
remove_row_type | R Documentation |
Removes either the header, reference, or missing rows from a gtsummary table.
remove_row_type(
x,
variables = everything(),
type = c("header", "reference", "missing", "level", "all"),
level_value = NULL
)
x |
( |
variables |
( |
type |
( |
level_value |
( |
Modified gtsummary table
# Example 1 ----------------------------------
trial |>
dplyr::mutate(
age60 = ifelse(age < 60, "<60", "60+")
) |>
tbl_summary(by = trt, missing = "no", include = c(trt, age, age60)) |>
remove_row_type(age60, type = "header")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.