Learn R Programming

tidyqwi (version 0.1.2)

converted_fips: A function to check if a valid state number or fips is passed

Description

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

Usage

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

Run this code
# NOT RUN {
library(tidyqwi)

converted_fips(37)
converted_fips("37")
converted_fips("NC")
converted_fips("nc")

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab