get_state: Get the state-level FIPS code

Description Usage Arguments Value See Also Examples

View source: R/fips_functions.R

Description

get_state returns the 2-digit state FIPS code from a complete FIPS string.

Usage

1
get_state(fips)

Arguments

fips

A character vector of complete FIPS strings.

Value

a character vector with the 2-digit state code.

See Also

get_county, get_tract

Examples

1
get_state(ctpp_flows$residence[1:10])

gregmacfarlane/ctpp_flows documentation built on May 24, 2021, 11:05 a.m.