texas_jails_scraperR Documentation

Scraper class for general texas_jails COVID data

Description

Texas jails report the data below in a pdf where information is reported for most facilities in the state. Each page of the pdf should have the same information.

Facility_Name

The facility name.

Number of inmates with active positive test confirmation

Does not look cumulative, needs checking.

Number of inmates pending test results
Number of inmates quarantined/isolated, not active
Number of inmates being treated offsite for active, COVID-19
Number of confirmed deaths related to COVID-19
Number of suspected deaths related to COVID-19
Number of jailers with active positive test confirmation
Number of jailers quarantined/isolated pending test results

Details

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

Super class

R_GlobalEnv::generic_scraper -> texas_jails_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
texas_jails_scraper$new(
  log,
  url = "https://www.tcjs.state.tx.us/",
  id = "texas_jails",
  type = "pdf",
  state = "TX",
  jurisdiction = "county",
  pull_func = texas_jails_pull,
  restruct_func = texas_jails_restruct,
  extract_func = texas_jails_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
texas_jails_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.