lasd_staff_scraperR Documentation

Scraper class for general LASD staff COVID data

Description

Info comes from a Microsoft power bi app that can be temperamental as load times vary and Selenium can not tell when the DOM is ready. May need to run a couple of times to get data.

Personnel Currently Quarantined
Personnel Currently High Risk
Returned to Work

Not neccesarily positive

Personnel Affected Since Inception
Prof. Confirmed

Staff type distinction of confirmed cases

Sworn Confirmed

Staff type distinction of confirmed cases

Total Confirmed

Total staff confirmed cases

Details

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

Super class

R_GlobalEnv::generic_scraper -> lasd_staff_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
lasd_staff_scraper$new(
  log,
  url = "https://lasd.org/covid19updates/",
  id = "lasd_staff",
  type = "html",
  state = "CA",
  jurisdiction = "county",
  pull_func = lasd_staff_pull,
  restruct_func = lasd_staff_restruct,
  extract_func = lasd_staff_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
lasd_staff_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.