allegheny_county_scraperR Documentation

Scraper class for general allegheny_county COVID data

Description

Allegheny data comes from an html tables which reports data on numerous statistics. First table is for residents second is for staff.

Residents Tested
Residents Positive
Residents Negative
Residents Pending
Residents Active
Residents Recovered
Residents Hospitalized
Staff Tested
Staff Positive
Staff Negative
Staff Pending
Staff Recovered

Details

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

Super class

R_GlobalEnv::generic_scraper -> allegheny_county_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
allegheny_county_scraper$new(
  log,
  url = "https://www.alleghenycounty.us/jail/index.aspx",
  id = "allegheny_county",
  type = "html",
  state = "PA",
  jurisdiction = "county",
  pull_func = allegheny_county_pull,
  restruct_func = allegheny_county_restruct,
  extract_func = allegheny_county_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
allegheny_county_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.