Description Usage Arguments Value
View source: R/weighted_analysis.R
‘janitor::tabyl()', while great, doesn’t work with weighted data. This is a start to fixing that; it takes a 'tbl_svy' object and does 'tabyl' on it (roughly). Currently it only works for 1 or 2 variables, and really does not look like ‘tabyl'’s internals so be careful.
1 2 |
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 |
... |
Currently unused |
A 'data.frame' containing weighted counts in each one-way or two-way combination of the input variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.