indiana_scraperR Documentation

Scraper class for general Indiana COVID data

Description

Data from IN is pulled from a image hosted in the DOC website which is run the OCR. The data posted has been consistent however it should be noted that it seems that residents confirmed goes down when they leave the facility so recovered can be higher than confirmed.

Correctional Facility

The facility name.

COVID-19 Tests Administered to Staff

Test administered by facility to staff

Staff Positive for COVID-19

Staff who are confirmed

Staff Recovered COVID-19

Staff who have recovered after being confirmed

Staff Confirmed / Presumed COVID-19 Death

Staff deaths related to covid

Offenders in Quarantine

Residents currently in quarantine

Offenders in Isolation

Residents currently in isolation

COVID-19 Tests Administered to Offenders

Number of tests administered to residents, not number of residents tested

Offender Positive for COVID-19

Residents currently in facility confirmed sometimes lower than recovered

Offenders Recovered COVID-19

Redidents who have recovered

Offender Presumed COVID-19 Death

Residents who have died, presumably to covid

Offender Confirmed COVID-19 Death

Residents who have died related to covid

Details

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

Super class

R_GlobalEnv::generic_scraper -> indiana_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
indiana_scraper$new(
  log,
  url = "https://www.in.gov/idoc/3780.htm",
  id = "indiana",
  type = "img",
  state = "IN",
  jurisdiction = "state",
  pull_func = indiana_pull,
  restruct_func = indiana_restruct,
  extract_func = indiana_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
indiana_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.