Learn R Programming

censable (version 0.0.5)

recode_abb_name: Recode Abb by Name

Description

Replaces state name with state abbreviation

Usage

recode_abb_name(.data, .name)

Value

.data with column .name replaced with abbreviation

Arguments

.data

data.frame or tibble

.name

column with state name

Examples

Run this code
data('stata')
stata %>% recode_abb_name(name)

Run the code above in your browser using DataLab