powered by
Replaces state name with state abbreviation
recode_abb_name(.data, .name)
.data with column .name replaced with abbreviation
data.frame or tibble
column with state name
data('stata') stata %>% recode_abb_name(name)
Run the code above in your browser using DataLab