ohio_city2county: Create a table that maps Ohio Cities to Counties

View source: R/hud_geocodes.R

ohio_city2countyR Documentation

Create a table that maps Ohio Cities to Counties

Description

This uses online references to create a table that maps Ohio Cities to Counties.

Usage

ohio_city2county(
  file = "https://www.omlohio.org/DocumentCenter/View/117/Municipalities-in-Ohio-PDF",
  path = file.path("data", "ohio_city2county.feather"),
  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.

overwrite

(logical) Whether to overwrite the existing feather file or just read it and return it.

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.