Description Usage Arguments Details Value Examples
topline
returns a tibble containing a weighted topline of one variable
1 2 3 4 5 6 7 8 9 10 |
df |
The data source |
variable |
the variable name |
weight |
The weighting variable, defaults to zwave_weight |
remove |
An optional character vector of values to remove from final table (e.g. "refused"). This will not affect any calculations made. The vector is not case-sensitive. |
n |
logical, if TRUE a frequency column is included percentages, but in a separate row for column percentages. |
pct |
logical, if TRUE a column of percents is included |
valid_pct |
logical, if TRUE a column of valid percents is included |
cum_pct |
logical, if TRUE a column of cumulative percents is included |
By default the table includes a column for frequency count, percent, valid percent, and cumulative percent.
a tibble
1 2 |
# A tibble: 2 x 5
Response Frequency Percent `Valid Percent` `Cumulative Percent`
<fct> <dbl> <dbl> <dbl> <dbl>
1 Male 49108796. 47.8 47.8 47.8
2 Female 53569718. 52.2 52.2 100
# A tibble: 2 x 4
Response Frequency `Valid Percent` `Cumulative Percent`
<fct> <dbl> <dbl> <dbl>
1 Male 49108796. 47.8 47.8
2 Female 53569718. 52.2 100
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.