massachusetts_scraperR Documentation

Scraper class for general Massachusetts COVID data

Description

Massachusetts data comes from an xlsx file that is updated weekly. Currently a full time series is available but it is not exactly clear which numbers are cumulative. We consistently get tested values that are less than confirmed.

DOC Facility

The facility name

Date
Total Population
N Tested - Detainees/Inmates
N Positive - Detainees/Inmates
N Tested - Staff
N Positive - Staff
Total Tested
Total Positive
Active Prisoner Cases
N Deaths
N Released
Notes

Details

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

Super class

R_GlobalEnv::generic_scraper -> massachusetts_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
massachusetts_scraper$new(
  log,
  url = "https://www.mass.gov/guides/doc-coronavirus-information-guide",
  id = "massachusetts",
  type = "csv",
  state = "MA",
  jurisdiction = "state",
  pull_func = massachusetts_pull,
  restruct_func = massachusetts_restruct,
  extract_func = massachusetts_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
massachusetts_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.