Description Usage Arguments Details Value Examples
View source: R/MakeCrosstab3Way.R
crosstab_3way
returns a data.frame containing a weighted crosstab of two variables
by wave.
1 2 3 4 5 6 7 8 9 10 11 12 |
mulaw |
The data.frame containing the version of the integrated file you wish to use |
x |
The independent variable |
y |
The dependent variable |
z |
The third variable |
weight |
The weighting variable, defaults to zwave_weight |
remove |
An optional character vector of values to remove from final table (e.g. DK/Ref). This will not affect any calculations made. The vector is not case-sensitive. |
n |
Logical. If TRUE add a row total column |
pct_type |
one of "row" or "cell" |
format |
one of "wide" or "long |
... |
further arguments passed to pollster::crosstab, such as unwt_n |
This is a wrapper around pollster::crosstab_3way()
A tibble
1 | crosstab_3way(integ, zpid3, g40, ac7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.