Description Usage Arguments Details Value See Also Examples
Generate combined weighted frequency tables for multiple x-axis variables, both for oneway and two-way tables.
| 1 2 3 | 
| data | a data frame containing the variables to use in the table. | 
| xvars | character: vector of variable names in data for x-axis rows. | 
| yvar | character: response variable for the y-axis in a two-way table. | 
| weights | character: column name in data containing the sample weights. | 
| normwt | logical: if TRUE, normalize weights so that the total weighted count is the
same as the unweighted one. Defaults to  | 
| nowt.show | logical: if TRUE, include unweighted registered voter statistics at the end
of the table. Defaults to  | 
| dem.table | logical: if TRUE, creates data for a demographic summary table. | 
| top.table | logical: if TRUE, creates data for a topline table. | 
An updated version of the wtd_table function from the questionr package with the added
functionality of taking multiple vectors as the x argument. Additionally produces rownames
for the resulting table using the levels of the variables passed to xvars and column names
using the levels of the variable passed to yvar.
If yvar is not provided, returns a weighted one-way frequency table of xvars. Otherwise,
returns a weighted two-way frequency table of xvars and yvar.
| 1 2 3 4 5 6 7 8 9 10 11 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.