- data
(data.frame
)
a data frame
- variables
(tidy-select
)
columns to include in summaries. Default is everything()
.
- by, strata
(tidy-select
)
columns to use for grouping or stratifying the table output.
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
(string
, data.frame
, integer
)
Specify this argument to change the denominator,
e.g. the "N"
statistic. Default is 'column'
. 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", "n_cum", "p_cum")
(on the RHS of a formula).