state_convert: Convert state identifiers

View source: R/state-convert.R

state_convertR Documentation

Convert state identifiers

Description

Take a vector of state identifiers and convert to a common format.

Usage

state_convert(x, to = NULL)

Arguments

x

A character vector of: state names, abbreviations, or FIPS codes.

to

The format returned: "abb", "name" or "fips".

Value

A character vector of single format state identifiers.

Examples

state_convert(c("AL", "Vermont", "06"))

usa documentation built on May 29, 2024, 12:09 p.m.