See the Table modifications article for examples.
all_ae_cols(overall, unknown)
selects all columns summarizing AE statistics. By default, unknown and overall columns are not selected.all_cols_in_strata(strata)
selects all columns from specified stratum.all_overall_cols()
selects all overall columnsall_unknown_cols()
selects all unknown columns
Usage
all_ae_cols(overall = FALSE, unknown = FALSE)
all_cols_in_strata(strata)
all_overall_cols()
all_unknown_cols()
Examples
# \donttest{
selectors_ex1 <-
df_adverse_events %>%
dplyr::mutate(grade = ifelse(dplyr::row_number() == 1L, NA, grade)) %>%
tbl_ae(
id = patient_id,
ae = adverse_event,
soc = system_organ_class,
by = grade
) %>%
add_overall(across = 'by') %>%
modify_header(
all_ae_cols() ~ "**Grade {by}**",
all_overall_cols() ~ "**Total**",
all_unknown_cols() ~ "**Unknown Grade**"
)
# }