maryland_scraperR Documentation

Scraper class for general Maryland COVID data

Description

Data from MD is pulled from a image hosted in the DOC website which is run the OCR. The data posted has been fairly consistent.

Facility

The facility name

Region

Greater region of facility

Staff Tests

Tests administered to staff not sure if test administered or individuals tested

Staff Positive

Number of confirmed staff

Staff Recovered

Number of recovered staff

Staff Deaths

Number of staff deaths

Inmates Tested

Residents tested not sure if test administered or individuals tested

Inmates Positive

Number of confirmed residents

Inmates Recovered

Number of recovered residents

Inmates Deaths

Number of resident deaths

Details

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

Super class

R_GlobalEnv::generic_scraper -> maryland_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
maryland_scraper$new(
  log,
  url = "https://news.maryland.gov/dpscs/covid-19/",
  id = "maryland",
  type = "img",
  state = "MD",
  jurisdiction = "state",
  pull_func = maryland_pull,
  restruct_func = maryland_restruct,
  extract_func = maryland_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
maryland_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.