mi_clean_embedded_precinct_names: Michigan-specific Function to Fix Mixing of Precinct Names...

Description Usage Arguments Value Examples

View source: R/michigan_specific_functions.R

Description

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.

Usage

1

Arguments

data

a dataframe with the above mentioned issues

Value

returns a cleaned dataframe ready for further processing

Examples

1
2
3
4
## Not run: 
mi_clean_embedded_precinct_names(mydataframe)

## End(Not run)

amkessler/precinctsopenelex documentation built on Feb. 5, 2021, 9:27 p.m.