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