ff_county_fips: Match county names to county FIPS codes

View source: R/cleaning.R

ff_county_fipsR Documentation

Match county names to county FIPS codes

Description

This function performs a cross-walk between county names and county FIPS codes. It takes NC county FIPS codes and input and outputs the county name.

Usage

ff_county_fips(county_fips_codes)

Arguments

county_fips_codes

NC county FIPS codes.

Value

The county name as a string corresponding to the county FIPS code.

Examples

df <- data.frame(county_fips_code = c(1, 3, 67),
                 estimate = c(121, 156, 190))

ff_county_fips(df$county_fips_code)

# Directly adding county names as a column
dplyr::mutate(df, county_name = ff_county_fips(df$county_fips_code))


forsythfuture/FFtools documentation built on April 5, 2022, 10:02 p.m.