texas_scraperR Documentation

Scraper class for general Texas COVID data

Description

Data pulled from Texas API with minimal cleaning required. Description of variables can be found here https://www.tdcj.texas.gov/covid-19/definitions.html

Unit
Unique_ID
Address
Offender_Total_Tests
Offender_Total_Positive_Cases
Offender_Active_Cases
Offender_Recovered
Offender_Deceased__Presumed_COVID
Offender_Deceased__Pending
Offender_Deceased_Confirmed_COVID
Employee_Total_Tests
Employee_Total_Positive_Cases
Employee_Active_Cases
Employee_Recovered
Employee_Deceased__COVID
Employee_Deceased__Pending
Employee_DeceasedNot_COVID
Medical_Restriction
Medical_Isolation
Units_on_Precautionary_Lockdown
Last_Updated

Details

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

Super class

R_GlobalEnv::generic_scraper -> texas_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
texas_scraper$new(
  log,
  url = "https://www.tdcj.texas.gov/covid-19/presumed.html",
  id = "texas",
  type = "json",
  state = "TX",
  jurisdiction = "state",
  pull_func = texas_pull,
  restruct_func = texas_restruct,
  extract_func = texas_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
texas_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.