std_short_party: Standardize party codes to single capital letters

View source: R/recode.R

std_short_partyR Documentation

Standardize party codes to single capital letters

Description

Standardize party codes to single capital letters

Usage

std_short_party(x)

Arguments

x

A vector of characters with unstandardized party, e.g. "Republican", "Not sure"..

Value

A vector of "D", "R",

Examples

std_short_party(
 c("Republican",
   "Democrat",
   "Not sure",
   "Other Party / Independent",
   "Never Heard of Person")
   )



kuriwaki/rcces documentation built on Sept. 12, 2023, 5:31 p.m.