Skip to contents

Utility functions for use in other functions Called to check to see if "state" is a FIPS code, full name or abbreviation. modified from function in tidycensus by Kyle Walker

Usage

validate_state(state = NULL, identifier)

Arguments

state

state name or fips code to be validated

identifier

indicates whether to return state fips (default), abbreviation, or name.

Value

a valid state FIPS code or chosen identifier