Skip to contents

Get a list of state and US territories along with the corresponding fips code and abbreviation.

Usage

hud_nation_states_territories(
  key = Sys.getenv("HUD_KEY"),
  to_tibble = getOption("rhud_use_tibble", FALSE)
)

Arguments

key

The API key for this user. You must go to (US Department of Housing and Urban Development) HUD USER and sign up for an account and request for an API key.

to_tibble

If TRUE, return the data in a tibble format rather than a data frame.

Value

A dataframe containing details of all the states and territories in the US.

Examples

if (FALSE) {
hud_nation_states_territories()
}