hud_state_metropolitan: US Metropolitan Areas

View source: R/hud_misc.R

hud_state_metropolitanR Documentation

US Metropolitan Areas

Description

Get details for all metropolitan areas for queried states with their name and (core based statistical area) cbsa code.

Usage

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

Arguments

state

The state to get all the metropolitan areas. Can be provided as the full name, fip code or abbreviation.

key

The API key for this user. You must go to HUD 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 metropolitan areas in state(s)

See Also

  • hud_nation_states_territories()

  • hud_state_metropolitan()

  • hud_state_counties()

  • hud_state_places()

  • hud_state_minor_civil_divisions()

Examples

## Not run: 

hud_state_metropolitan("VA")


## End(Not run)

etam4260/rhud documentation built on Nov. 12, 2022, 2:53 a.m.