mi_format_column_names: Michigan-specific Function to Rename Columns

Description Usage Arguments Value Examples

View source: R/michigan_specific_functions.R

Description

This function takes a dataframe containing precinct data with the original Michigan candidate/party headers and converts the headers to proper formatting to use with package's processing functions. It is tailored to work with the way Michigan counties' format of "Candidate (PARTY)" and also incorporates step to remove empty columns.

Usage

1

Arguments

df

a dataframe

Value

returns a dataframe with renamed columns and completely empty columns removed

Examples

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

## End(Not run)

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