View source: R/ei_preprocessing.R
standardize_votes | R Documentation |
Computes proportions for returning by clean_race and clean_cand
standardize_votes(votes, new_names = FALSE)
votes |
A dataframe of raw votes by race or candidates |
new_names |
A boolean indicating whether to return cand and race columns with the same names. If FALSE, names returned with "_prop" added on. |
A dataframe of standardized proportions whose columns sum rowwise to 1
Ari Decter-Frain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.