View source: R/utils_rtables.R
add_rowcounts | R Documentation |
This works analogously to rtables::add_colcounts()
but on the rows. This function
is a wrapper for rtables::summarize_row_groups()
.
add_rowcounts(lyt, alt_counts = FALSE)
lyt |
( |
alt_counts |
( |
A modified layout where the latest row split labels now have the row-wise total counts (i.e. without column-based subsetting) attached in parentheses.
Row count values are contained in these row count rows but are not displayed so that they are not considered zero rows by default when pruning.
basic_table() %>%
split_cols_by("ARM") %>%
add_colcounts() %>%
split_rows_by("RACE", split_fun = drop_split_levels) %>%
add_rowcounts() %>%
analyze("AGE", afun = list_wrap_x(summary), format = "xx.xx") %>%
build_table(DM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.