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

View source: R/check_fips.R

converted_fipsR Documentation

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


library(tidyqwi)

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




medewitt/tidyqwi documentation built on April 29, 2024, 9:46 p.m.