Skip to contents

Get a dataframe with details describing the county(s) located within the queried state(s).

Usage

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

Arguments

state

The state(s) to get all county(s).

key

The key obtained from HUD (US Department of Housing and Urban Development) USER website.

to_tibble

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

Value

A dataframe containing all counties within state(s).

Examples

if (FALSE) {
hud_state_counties("CA")
hud_state_counties("Virginia")
hud_state_counties("51")
}