std_sc_solicit: Standardize solicitor contest with district number, based on...

View source: R/format_values.R

std_sc_solicitR Documentation

Standardize solicitor contest with district number, based on county

Description

Standardize solicitor contest with district number, based on county

Usage

std_sc_solicit(vec, is_solicit, county, data = sc_counties)

Arguments

vec

a character vector that contains some solicitor district values

county

A vector of strings, south carolina counties.

data

A data that matches counties to solicitor district keys. Provided in package.

is_solicitor

a logical vector of the same length as vec that is TRUE when the index is a solicitor, and FALSE otherwise

Examples

raw <- c("Solicitor Circuit District 14", "Solicitor 10th Circuit", "County Council")
is_solicit <- c(TRUE, TRUE, FALSE)
county <- c("Anderson", "Jasper", "Charleston")
std_sc_solicit(raw, is_solicit, county)

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