View source: R/split_cols_by_groups.R
groups_list_to_df | R Documentation |
This converts a list of group levels into a data frame format which is expected by rtables::add_combo_levels()
.
groups_list_to_df(groups_list)
groups_list |
(named |
A tibble
in the required format.
grade_groups <- list(
"Any Grade (%)" = c("1", "2", "3", "4", "5"),
"Grade 3-4 (%)" = c("3", "4"),
"Grade 5 (%)" = "5"
)
groups_list_to_df(grade_groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.