View source: R/split_cols_by_groups.R
combine_counts | R Documentation |
Simplifies the estimation of column counts, especially when group combination is required.
combine_counts(fct, groups_list = NULL)
fct |
( |
groups_list |
(named |
A vector
of column counts.
combine_groups()
ref <- c("A: Drug X", "B: Placebo")
groups <- combine_groups(fct = DM$ARM, ref = ref)
col_counts <- combine_counts(
fct = DM$ARM,
groups_list = groups
)
basic_table() %>%
split_cols_by_groups("ARM", groups) %>%
add_colcounts() %>%
analyze_vars("AGE") %>%
build_table(DM, col_counts = col_counts)
ref <- "A: Drug X"
groups <- combine_groups(fct = DM$ARM, ref = ref)
col_counts <- combine_counts(
fct = DM$ARM,
groups_list = groups
)
basic_table() %>%
split_cols_by_groups("ARM", groups) %>%
add_colcounts() %>%
analyze_vars("AGE") %>%
build_table(DM, col_counts = col_counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.