phil_jails_scraperR Documentation

Scraper class for general phil_jails COVID data

Description

Philadelphia data jail is sparse but is conveniently reported in an api.

totalDailyPop
currentSymtomaticCase
totalSymtomaticCase
currentAsymtomaticCase
totalAsymtomaticCase
reportDate

Details

The last run of the scraper was on 2021-01-11 and contained the extracted columns: Residents.Population, Residents.Active, Residents.Confirmed, Name, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.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

Super class

R_GlobalEnv::generic_scraper -> phil_jails_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
phil_jails_scraper$new(
  log,
 
    url = "https://www.phila.gov/programs/coronavirus-disease-2019-covid-19/testing-and-data/#/philadelphia-prisons-covid-19-data",
  id = "phil_jails",
  type = "json",
  state = "PA",
  jurisdiction = "county",
  pull_func = phil_jails_pull,
  restruct_func = phil_jails_restruct,
  extract_func = phil_jails_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
phil_jails_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.