state2abbr: Convert state names to abbreviations

Description Usage Arguments Value Author(s) See Also Examples

View source: R/state2abbr.R

Description

Two utility functions. One converts state names to the state abbreviations, and the second does the opposite.

Usage

1

Arguments

state

A vector of state name, where there is a little fuzzy matching.

Value

Returns a vector of the same length with the corresponding state names or abbreviations.

Author(s)

David Diez

See Also

abbr2state, county, county_complete

Examples

1
2
3
4
state2abbr("Minnesota")

# Some spelling/capitalization errors okay
state2abbr("mINnesta")

OpenIntroStat/openintro-r-package documentation built on Jan. 22, 2020, 3:23 p.m.