Description Usage Arguments Value
View source: R/weighted_analysis.R
Uses 'tabyl.tbl_svy' to create and format a two-way crosstab.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
A weighted data object of class 'tbl_svy' |
var1 |
The variable to be tabulated, or the grouping variable |
var2 |
(Optional) the variable to be tabulated within each 'var1' group |
show_na |
Whether rows/columns that are 'NA' should be included |
drop_set |
Which non-NA classes should be dropped |
output |
Whether the cells should show weighted counts, proportions, or both |
totals |
Whether totals should be included as a row, column, both, or neither |
pct_denom |
Which direction the percentages should be calculated on |
round_n |
How many digits to round counts to |
round_pct |
How many digits to round percentages to |
A 'data.frame' object formatted as specified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.