code_c_name: Separate contest and number

View source: R/format_values.R

code_c_nameR Documentation

Separate contest and number

Description

create a "code" that should be a seven-character code if properly formatted reassemble contest by code and name

Usage

code_c_name(tbl, ref_county, ref_state)

Arguments

tbl

long data

ref_county

dataframe with manual contest_codes for county-wide referenda to join

ref_state

same, but for statewide referenda


kuriwaki/ballot documentation built on May 1, 2023, 9:55 p.m.