Description Usage Arguments Value Author(s) Examples
Checks that both sides of the RxC equation for White/Minority and White, Black, Hispanic, Other, respectively, add up to the same values. If small rounding issues, adjusts the "other" race category.
1 2 3 |
dat |
data.frame() object. One no vote/third party vote column, with candidate votes (for either 2 or 3 candidates), then up to four demographics with last as other |
split |
Numeric vector of length 2. Default is c(3,4), for two candidates and one catch-all. c(4,5) for three candidates and one catch all. |
catch |
Logical (TRUE/FALSE). Catch negative values. Default is FALSE |
catch_col |
Column names to be catched. |
print_sides |
Logical (TRUE/FALSE). Print out evaluations. Default is TRUE |
Dataset of Left side (Votes) vs. Right side (Demographics). diff column can be tagged on to exiting 'other' category to expedite data preparation process.
Loren Collingwood <loren.collingwood@ucr.edu>
1 2 3 |
# EXAMPLE: NOT RUN #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.