ohio_scraperR Documentation

Scraper class for general Ohio COVID data

Description

Data come from a pdf which is updated periodically. The link to the pdf itself does not change only the data within the pdf. We should be periodically checking to see i f alternative sources are available as the data collected are sometimes fickle.

Institution
Housing Type (cell, open bay, combo)
# of Staff who have Reported Positive Tests
# of COVID- 19 Related Staff Deaths
# of Staff who have Recovered
Units in Quarantine
# of Inmates in Quarantine
# of Inmates in Isolation
# of inmates currently Positive for COVID-19
# of Probable COVID-19 Related Inmate Deaths
# of Confirmed COVID-19 Related Inmate Deaths
# of Inmates who have Pending Results
# of current Inmates who have Recovered

Details

The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Staff.Confirmed, Staff.Deaths, Staff.Recovered, Residents.Quarantine, Residents.Confirmed, Residents.Deaths, Residents.Recovered, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.Tested, Residents.Tested, Residents.Tadmin, Staff.Negative, Residents.Negative, Staff.Pending, Residents.Pending, Staff.Quarantine, Residents.Population, Residents.Active

Super class

R_GlobalEnv::generic_scraper -> ohio_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
ohio_scraper$new(
  log,
  url = "https://drc.ohio.gov/Organization/Research/Reports/COVID-19-Information",
  id = "ohio",
  type = "pdf",
  state = "OH",
  jurisdiction = "state",
  pull_func = ohio_pull,
  restruct_func = ohio_restruct,
  extract_func = ohio_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
ohio_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.