Function takes the summary instructions from the
statistic = list(variable_name = list(tabulation=c("n", "N", "p")))
argument, and returns the tabulations in an ARD structure.
(tidy-select)
columns to include in summaries. Default is everything().
by, strata
(tidy-select)
columns to tabulate by/stratify by for tabulation.
Arguments are similar, but with an important distinction:
by: results are tabulated by all combinations of the columns specified,
including unobserved combinations and unobserved factor levels.
strata: results are tabulated by all observed combinations of the
columns specified.
Arguments may be used in conjunction with one another.
denominator
(data.frame, integer)
Specify this optional argument to change the denominator,
e.g. the "N" statistic. Default is NULL. See below for details.
statistic
(formula-list-selector)
a named list, a list of formulas,
or a single formula where the list element one or more of c("n", "N", "p")
(or the RHS of a formula).