Description Usage Arguments Value Examples
View source: R/michigan_specific_functions.R
A number of Michigan counties report their results in a format that both mixes together the precinct names and several vote categories (e.g. early vote, total vote) in a single column. This function both extracts the precinct name from that mess, and also removes rows featuring multiple vote subtypes to leave just the "Total" count for each candidate.
1 |
data |
a dataframe with the above mentioned issues |
returns a cleaned dataframe ready for further processing
1 2 3 4 | ## Not run:
mi_clean_embedded_precinct_names(mydataframe)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.