Description Usage Arguments Value See Also
Run weighted or unweighted crosstabs on one or two variables, using unquoted inputs.
1 2 |
df |
input dataframe |
v1 |
name of 1st variable/column to tabulate |
v2 |
name of optional 2nd variable/column to tablulate. DEFAULT NULL |
weight_var |
name of weight variable/column. DEFAULT NULL |
sdesign |
survey package surveydesign object. DEFAULT NULL |
nsize |
boolean flag to include n-sizes in output. DEFAULT FALSE |
ci |
boolean flag to include lower- and upper- bounds of confidence intervals. DEFAULT FALSE |
to_factor |
boolean flag to convert v1/v2 to factors, if needed. DEFAULT TRUE |
collapses |
list of categories to collapse as "new name"=c(inputs) DEFAULT list() |
dataframe of tab results
stab
which this function wraps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.