expand_state: Expand US state names

View source: R/expand-abbrev.R

expand_stateR Documentation

Expand US state names

Description

This function is used to first normalize an abb and then call expand_abbrev() using valid_state and valid_name as the abb and rep arguments.

Usage

expand_state(abb)

Arguments

abb

A abb US state name character vector (e.g., "Vermont").

Value

The 2-letter USPS abbreviation of for state names (e.g., "VT").

See Also

Other geographic normalization functions: abbrev_full(), abbrev_state(), check_city(), expand_abbrev(), fetch_city(), normal_address(), normal_city(), normal_state(), normal_zip(), str_normal()

Examples

expand_state(abb = state.abb)
expand_state(abb = c("nm", "fr"))

irworkshop/campfin documentation built on Oct. 19, 2023, 8:02 a.m.