michigan_staff_scraperR Documentation

Scraper class for general Michigan staff COVID data

Description

MI staff data scraper, this information is pulled from a separate table from resident data and though it says we are missing the resident 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.

Location

The facility name

Staff confirmed

Staff confirmed positive

Staff deaths

staff deaths

Details

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

Super class

R_GlobalEnv::generic_scraper -> michigan_staff_scraper

Methods

Public methods

Inherited methods

Method new()

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

Method clone()

The objects of this class are cloneable with this method.

Usage
michigan_staff_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.