Description Usage Arguments Value
View source: R/tab_functions.R
Run weighted crosstabs on one or two variables, using quoted inputs.
1 2 |
df |
input dataframe |
v1 |
string name of 1st variable/column to tabulate |
v2 |
string name of optional 2nd variable/column to tablulate. DEFAULT "NULL" |
weight_var |
string 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 |
dataframe of tab results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.