View source: R/colby_constructors.R
split_rows_by_multivar | R Documentation |
When we need rows to reflect different variables rather than different
levels of a single variable, we use split_rows_by_multivar
.
split_rows_by_multivar(
lyt,
vars,
split_fun = NULL,
split_label = "",
varlabels = vars,
format = NULL,
na_str = NA_character_,
nested = TRUE,
child_labels = c("default", "visible", "hidden"),
indent_mod = 0L,
section_div = NA_character_,
extra_args = list()
)
lyt |
( |
vars |
( |
split_fun |
( |
split_label |
( |
varlabels |
( |
format |
( |
na_str |
( |
nested |
( |
child_labels |
( |
indent_mod |
( |
section_div |
( |
extra_args |
( |
A PreDataTableLayouts
object suitable for passing to further layouting functions, and to build_table()
.
split_rows_by()
for typical row splitting, and split_cols_by_multivar()
to perform the same type of
split on a column basis.
lyt <- basic_table() %>%
split_cols_by("ARM") %>%
split_rows_by_multivar(c("SEX", "STRATA1")) %>%
summarize_row_groups() %>%
analyze(c("AGE", "SEX"))
tbl <- build_table(lyt, DM)
tbl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.