pennsylvania_population_scraperR Documentation

Scraper class for general Pennsylvania population COVID data

Description

PN also reports separately info on the population of each facility. We collect that information from an html table here. You can ignore the warnings about missingness below.

INSTITUTION

The facility name.

TODAY'S POPULATION

Residnet population

REPRIEVE RELEASES

Residents released

TODAY'S POPULATION AFTER REPRIEVE RELEASES

New res population

INCREASE/DECREASE FROM YESTERDAY

Resident change from yesterday

INCREASE/DECREASE FROM LAST WEEK

Resident change from last week

INCREASE/DECREASE FROM LAST MONTH

Resident change from last month

Details

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

Super class

R_GlobalEnv::generic_scraper -> pennsylvania_population_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
pennsylvania_population_scraper$new(
  log,
  url = "https://www.cor.pa.gov/Pages/COVID-19.aspx",
  id = "pennsylvania_population",
  type = "html",
  state = "PA",
  jurisdiction = "state",
  pull_func = pennsylvania_population_pull,
  restruct_func = pennsylvania_population_restruct,
  extract_func = pennsylvania_population_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
pennsylvania_population_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.