combine_groups: 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 = "/")
Value
A list with first item ref (reference) and second item trt (treatment).
Arguments
fct
(factor) the variable with levels which needs to be grouped.
ref
(character) the reference level(s).
collapse
(string) a character string to separate fct and ref.