hud_geocodes: Extract HUD Geocodes

View source: R/hud_geocodes.R

hud_geocodesR Documentation

Extract HUD Geocodes

Description

Extract HUD Geocodes from latest specification pdf in inst folder

Usage

hud_geocodes(
 
    file = "https://www.hud.gov/sites/dfiles/CPD/documents/FY-2021-GeoCodes-with-PPRN_Final.pdf",
  path = "data",
  overwrite = FALSE
)

Arguments

file

(character) the file path or URL. If none is specified, the inst directory is searched for the most recent file.

path

(character) The path to save the feather file for the extracted data.

Details

Extracting tables from every page of a PDF is an expensive process, therefore this function saves a feather file for rapid retrieval. The file will be written to path with the same name as the pdf passed to file.

Value

(tbl_df) of geocodes. A message indicating where the feather file has been saved for quick retrieval.


COHHIO/hud.extract documentation built on Oct. 11, 2023, 11:29 a.m.