sr_state_fips_code: Get state FIPS codes from state abbreviations

View source: R/utils-common.R

sr_state_fips_codeR Documentation

Get state FIPS codes from state abbreviations

Description

Pulling state data from APIs often requires knowing teh state's fips code, which is an integer. This function allows you to retreive a single state's fips code by entering the state abbreviation.

Usage

sr_state_fips_code(state_abb)

Arguments

state_abb

Two letter state abbreviation of the state that you want to retrieve the fips code.

Value

A single integer representing the fips code of the specified state.


shanejorr/schoolreportr documentation built on Aug. 7, 2023, 12:25 p.m.