
Last chance! 50% off unlimited learning
Sale ends in
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 = "/")
A list
with first item ref
(reference) and second item trt
(treatment).
(factor
)
the variable with levels which needs to be grouped.
(character
)
the reference level(s).
(string
)
a character string to separate fct
and ref
.
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)
Run the code above in your browser using DataLab