new_jersey_scraperR Documentation

Scraper class for general new_jersey COVID data

Description

NJ reports data in multiple tables depending on phases. Within each table is the cumulative coiunt for that phase. We loop through all tables and sum to get the sumn of all phases.

Facility_Name

The facility name

Employees

Staff.Confirmed

Inmates

Resident cumulative Confirmed

Inmates deaths

Resident cumulative deaths

Details

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

Super class

R_GlobalEnv::generic_scraper -> new_jersey_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
new_jersey_scraper$new(
  log,
  url = "https://www.state.nj.us/corrections/pages/COVID19Updates.shtml",
  id = "new_jersey",
  type = "html",
  state = "NJ",
  jurisdiction = "state",
  pull_func = new_jersey_pull,
  restruct_func = new_jersey_restruct,
  extract_func = new_jersey_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
new_jersey_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.