michigan_scraperR Documentation

Scraper class for general Michigan COVID data

Description

MI resident data scraper, this information is pulled from a separate table from staff data and though it says we are missing the staff data below we shouldnt be concerned about that. Note that there does not appear to be any sort of consistency or the position of this image and as such this scraper is extremely error prone. Fixing this should be a priority. Note that the column for Prisoners tested greatly underestimates the number of tests administered which is reported elsewhere in the page.

Location

The facility name

Prisoners Tested

Residents tested, not tests adminstered

Total Prisoners Confirmed

Residents confirmed

Prisoners Negative

Residents negative

Active Positive Cases

Residents active

Priosner Deaths

Residents 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.Active, Residents.Deaths, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.Confirmed, Staff.Deaths, Staff.Recovered, Residents.Recovered, Staff.Tested, Residents.Tadmin, Staff.Negative, Staff.Pending, Residents.Pending, Staff.Quarantine, Residents.Quarantine, Residents.Population

Super class

R_GlobalEnv::generic_scraper -> michigan_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
michigan_scraper$new(
  log,
 
    url = "https://medium.com/@MichiganDOC/mdoc-takes-steps-to-prevent-spread-of-coronavirus-covid-19-250f43144337",
  id = "michigan",
  type = "img",
  state = "MI",
  jurisdiction = "state",
  pull_func = michigan_pull,
  restruct_func = michigan_restruct,
  extract_func = michigan_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
michigan_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.