hud_fmr_county_zip: Fair Markets Rent County Queries for Zip

View source: R/hud_fmr.R

hud_fmr_county_zipR Documentation

Fair Markets Rent County Queries for Zip

Description

This function queries for county(s) and returns FMR calculation. If the county is not a small area, it will return only single measurement for that county. If the county is considered a small area, it will return data at a zip code level.

Usage

hud_fmr_county_zip(
  county,
  year = format(Sys.Date() - 365, "%Y"),
  key = Sys.getenv("HUD_KEY"),
  to_tibble = getOption("rhud_use_tibble", FALSE)
)

Arguments

county

A character or numeric vector: a county to query for. Must be provided as a 5 digit fipcode.

year

A character of numeric vector: gets the year that this data was recorded. Can specify multiple year(s). Default is the previous year.

key

A character vector of length one with the key obtained from HUD (US Department of Housing and Urban Development) USER website.

to_tibble

A logical: if TRUE, return the data in a tibble format rather than a data frame.

Value

A data frame with fair markets rent for zip codes in counties for all combinations of "county" and "year" inputs.

See Also

  • hud_fmr_state_metroareas()

  • hud_fmr_state_counties()

  • hud_fmr_metroarea_zip()

  • hud_fmr_county_zip()

  • hud_fmr()

Examples

## Not run: 
hud_fmr_county_zip("5100199999", year = c(2021))

hud_fmr_county_zip("5100199999", year = c("2021"))

hud_fmr_county_zip(5151099999, year = c(2021))

## End(Not run)

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