Builds gross and rental vacancy rates.
build_coc_vacancy_rates(year, tract_crosswalk)
year | A numeric with the year of the data. |
---|---|
tract_crosswalk | A data frame with a census tract to CoC crosswalk from
|
A data frame with the rental vacancy rates:
coc_number
: CoC number (character)
year
: Year (numeric)
gross_vacancy_rate
: Share of all housing units that are unoccupied
(numeric)
rental_vacancy_rate
: Share of rental housing units not rented (numeric)
Gross vacancy rate = all unoccupied housing units / all housing units
Rental vacancy rate = unoccupied rental units that are for rent / (occupied rental units + unoccupied rental units that are for rent + rented units that are unoccupied)