Create a contingency table or other aggregation from cross-classifying variables in a CrunchDataset.
crtabs(formula, data, weight = crunch::weight(data), useNA = c("no",
"ifany", "always"))an object of class 'formula' object with the
cross-classifying variables separated by '+' on the right side of the
"~". If aggregating by functions other than counts, include the aggregation
expression on the left-hand side.
Compare to xtabs.
an object of class CrunchDataset
a CrunchVariable that has been designated as a potential
weight variable for data, or NULL for unweighted results.
Default is the currently applied weight, weight(data).
whether to include missing values in tabular results. See
table.
an object of class CrunchCube