The function verifies if a valid FIPS code was passed and converts it to a unified standard for internal use.

converted_fips(fips)

Arguments

fips

the state abbreviation or fips code vector

Value

States Abbreviations or FIPs as FIP character strings

a vector with the State FIPS code

Examples

# \donttest{ library(tidyqwi) converted_fips(37)
#> [1] 37
converted_fips("37")
#> [1] "37"
converted_fips("NC")
#> [1] "37"
converted_fips("nc")
#> [1] "37"
# }