pennsylvania_scraperR Documentation

Scraper class for general Pennsylvania COVID data

Description

PN data come from an xlsx sheet which is frequently updated. Note that this data is also available on the PN DOC website through a Microsoft BI app.

LOCATION

The facility name.

Staff Positive
Staff Negative
Staff Pending
Staff Death
Staff Recovered
Residents Positive
Residents Negative
Residents Pending
Residents Death
Residents Recovered
Resident Transfers
Resident Transfers while Positive
Resident Release
Resident Release while Positive
Resident Hospital
Resident Hospital while Positive
Resident Surveilance
Resident Surveilance while Positive
Resident Symptomatic
Resident Symptomatic while Positive

Details

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

Super class

R_GlobalEnv::generic_scraper -> pennsylvania_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
pennsylvania_scraper$new(
  log,
  url = "https://www.cor.pa.gov/Pages/COVID-19.aspx",
  id = "pennsylvania",
  type = "csv",
  state = "PA",
  jurisdiction = "state",
  pull_func = pennsylvania_pull,
  restruct_func = pennsylvania_restruct,
  extract_func = pennsylvania_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
pennsylvania_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.