utah_scraperR Documentation

Scraper class for general Utah COVID data

Description

UT has changed the way that they present data several times but the latest iteration is presented via an image hosted on the page. Currently the image is grabbed by position which is not sustainable. The test number appears to be residents tested rather than tests administered.

Location

The facility name.

Total Inmates Tested

Cumulative resients tested not tests administered

Inmates Confirmed

Residents confirmed

Inmates Negative

Residents negative

Inmates Recovered

Residents recovered

Inmate Deaths

Resident deaths

Details

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

Super class

R_GlobalEnv::generic_scraper -> utah_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
utah_scraper$new(
  log,
 
    url = "https://corrections.utah.gov/index.php/home/alerts-2/1237-udc-coronavirus-updates",
  id = "utah",
  type = "img",
  state = "UT",
  jurisdiction = "state",
  pull_func = utah_pull,
  restruct_func = utah_restruct,
  extract_func = utah_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
utah_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.