arizona_scraperR Documentation

Scraper class for general Arizona COVID data

Description

HTML table scraping of semi structured data. The information that we care about are located in the html tables located at position 2 for residents and 3 for staff. Should be checked regularly for changing format. Note that historically data for number of residents confirmed has been less than number recovered. Since the number of individuals being released is not reproted this may contribute to the difference.

Location

The facility name.

Inmates Tested

Likely cummulative number of inmates tested.

Inmates Negative

Likely cummulative number of inmates negative.

Inmates Confirmed

Likely cummulative number of inmates confirmed.

Inmates Pending

Current number of inmates pending.

Inmates Recovered

Likely cummulative number of inmates recovered.

Daily Total Population

Resdient population.

Inmates Confirmed Deaths

Resident death occured w/confirmed status.

Inmates Potential Deaths

Resident death but no confirmed status.

Details

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

Super class

R_GlobalEnv::generic_scraper -> arizona_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
arizona_scraper$new(
  log,
 
    url = "https://corrections.az.gov/adcrr-covid-19-dashboard?order=title_field&sort=asc",
  id = "arizona",
  type = "html",
  state = "AZ",
  jurisdiction = "state",
  pull_func = arizona_pull,
  restruct_func = arizona_restruct,
  extract_func = arizona_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
arizona_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.