south_carolina_scraperR Documentation

Scraper class for general south_carolina COVID data

Description

SC data is pulled from two HTML tables one for staff and one for residents. Minimal cleaning is necessary however, it should be noted that at some point SC added columns for death so they may add or remove columns at sometime in the future.

Assigned locations

The facility name.

Offenders

Residents who are confirmed

Offenders Cleared

Residents who have been confirmed and recovered

Offender Active Cases

Residents with outstanding cases

Offender Deaths

Residents who have died because of COVID

Staff

Staff who are confirmed

Staff Cleared

Staff who have recovered

Staff Active Cases

Staff with outstanding cases

Staff Deaths

Staff who have died because of COVID

Details

The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Staff.Confirmed, Staff.Recovered, Staff.Deaths, Residents.Confirmed, Residents.Recovered, Residents.Deaths, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: 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 -> south_carolina_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
south_carolina_scraper$new(
  log,
  url = "http://www.doc.sc.gov/covid.html",
  id = "south_carolina",
  type = "html",
  state = "SC",
  jurisdiction = "state",
  pull_func = south_carolina_pull,
  restruct_func = south_carolina_restruct,
  extract_func = south_carolina_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
south_carolina_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.