View source: R/tt_compare_tables.R
prune_table | R Documentation |
TableTree
Recursively prune a TableTree
prune_table(
tt,
prune_func = prune_empty_level,
stop_depth = NA_real_,
depth = 0
)
tt |
( |
prune_func |
( |
stop_depth |
( |
depth |
( |
A TableTree
pruned via recursive application of prune_func
.
prune_empty_level()
for details on this and several other basic pruning functions included
in the rtables
package.
adsl <- ex_adsl
levels(adsl$SEX) <- c(levels(ex_adsl$SEX), "OTHER")
tbl_to_prune <- basic_table() %>%
split_cols_by("ARM") %>%
split_rows_by("SEX") %>%
summarize_row_groups() %>%
split_rows_by("STRATA1") %>%
summarize_row_groups() %>%
analyze("AGE") %>%
build_table(adsl)
tbl_to_prune %>% prune_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.