minnesota_scraperR Documentation

Scraper class for general Minnesota COVID data

Description

MN data comes from an iframe that is loaded from smart sheets. The main data sources come from two primary tables, one for staff and another for residents.

Primary

Facility Name

Resident Total Tests Administered
Resident Confirmed Negative
Resident Confirmed Positive
Resident Tests Pending
Resident Hospitalized
Resident Recovered
Resident Deceased
Staff Confirmed Positive Test
Staff Hospitalized
Staff Presumed Positive
Staff Returned to Work

Details

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

Super class

R_GlobalEnv::generic_scraper -> minnesota_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
minnesota_scraper$new(
  log,
  url = "https://mn.gov/doc/about/covid-19-updates/",
  id = "minnesota",
  type = "html",
  state = "MN",
  jurisdiction = "state",
  pull_func = minnesota_pull,
  restruct_func = minnesota_restruct,
  extract_func = minnesota_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
minnesota_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.