combine_groups {tern} | R Documentation |
Reference and treatment group combination
Description
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.
Usage
combine_groups(fct, ref = NULL, collapse = "/")
Arguments
fct |
( |
ref |
( |
collapse |
( |
Value
A list
with first item ref
(reference) and second item trt
(treatment).
Examples
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)
[Package tern version 0.9.5 Index]