Skip to contents

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)

Examples

if (FALSE) {

hud_state_metropolitan("VA")

}