View source: R/add_hierarchical_count_row.R
add_hierarchical_count_row | R Documentation |
Typically used to add a row with overall AE counts to a table that primarily displays AE rates.
add_hierarchical_count_row(
x,
label = "Overall total number of events",
.before = NULL,
.after = NULL,
data_preprocess = identity
)
x |
( |
label |
( |
.before , .after |
( |
data_preprocess |
( |
gtsummary table
# Example 1 ----------------------------------
cards::ADAE |>
# subset the data for a shorter example table
dplyr::slice(1:10) |>
tbl_hierarchical(
by = "TRTA",
variables = AEDECOD,
denominator = cards::ADSL,
id = "USUBJID",
overall_row = TRUE
) |>
add_hierarchical_count_row(.after = 1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.