new_hampshire_scraperR Documentation

Scraper class for general New Hampshire COVID data

Description

NH has two tables one for residents and one for staff. The info provided is minimal but fairly easy to scrape. Both number tested and confirmed for staff and residents appear to be individuals confirmed and tested rather than tests administered and tests that were positive.

Name

The facility name.

Num Staff Positive

The staff number testing positive

Num Residents tested

Not the number of tests administered

Num Residents Positive

Number of residents confirmed

NHDOC Staff

State wide staff population

Details

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

Super class

R_GlobalEnv::generic_scraper -> new_hampshire_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
new_hampshire_scraper$new(
  log,
  url = "https://www.covid19.nhdoc.nh.gov/covid-19-testing-information",
  id = "new_hampshire",
  type = "html",
  state = "NH",
  jurisdiction = "state",
  pull_func = new_hampshire_pull,
  restruct_func = new_hampshire_restruct,
  extract_func = new_hampshire_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
new_hampshire_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.