OpenIntroStat / usdata

📦 Data on the states and counties of the United States 🇺🇸
http://openintrostat.github.io/usdata
GNU General Public License v3.0
5 stars 1 forks source link

washington DC state2abbrev wrong #9

Closed iamgyang closed 1 month ago

iamgyang commented 1 year ago

state2abbr("washington dc") gives "WA" rather than "dc"

mine-cetinkaya-rundel commented 1 month ago

Washington, DC is a city, while the function is designed to take a state name. "District of Columbia" gives the correct abbreviation (even though not actually a "state").

library(usdata)
state2abbr("District of Columbia")
# "DC"