cook_county_scraperR Documentation

Scraper class for general Cook County COVID data

Description

Cook County Jail data is extremely sensitive to changes in the formatting as data is extracted from raw text. Format should be checked frequently. Data only reported for Cook County jail. Note that there is no release numbers so total confirmed may be an under-count because of the way it is calculates. Active + Recovered + Deaths. Historical data present in graph but no way to extract.

Staff Active

Staff currently infected by virus.

Staff Recovered

Likely cumulative staff recovered.

Staff Deaths

Cumulative staff deaths.

Residents Active

Residents currently infected by virus.

Residents Recovered

Likely cumulative residents recovered.

Residents Deaths

Cumulative resident deaths.

Residents Negative

Likely cumulative negative cases.

Details

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

Super class

R_GlobalEnv::generic_scraper -> cook_county_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
cook_county_scraper$new(
  log,
  url = "https://www.cookcountysheriff.org/covid-19-cases-at-ccdoc/",
  id = "cook_county",
  type = "html",
  state = "IL",
  jurisdiction = "county",
  pull_func = xml2::read_html,
  restruct_func = cook_county_restruct,
  extract_func = cook_county_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
cook_county_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.