View source: R/split_cols_by_groups.R
combine_groups | R Documentation |
Facilitate the re-combination of groups divided as reference and treatment groups; it helps in arranging groups of
columns in the rtables
framework and teal modules.
combine_groups(fct, ref = NULL, collapse = "/")
fct |
( |
ref |
( |
collapse |
( |
A list
with first item ref
(reference) and second item trt
(treatment).
groups <- combine_groups(
fct = DM$ARM,
ref = c("B: Placebo")
)
basic_table() %>%
split_cols_by_groups("ARM", groups) %>%
add_colcounts() %>%
analyze_vars("AGE") %>%
build_table(DM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.