nevada_scraperR Documentation

Scraper class for general nevada COVID data

Description

The NV Scraper works with a standalone Microsoft Power BI app and extracts data from all facilities listed as correctional by saving a copy of the html after selecting a single facility. Because an html document is saved for every selection the 'raw' data is simply an html file which embeds each of these saved html files as an iframe. The scraper is not very robust to changes in the names of labels and as such should be accurate but sensitive to changes to the design of the app. On several occasions data for the number of residents confirmed has been less than the number of residents recovered which should not happen in our own records. Note that the dashboard also contains information on facilities other than for incarcerated populations.

Facility Name

The facility name

Residents Confirmed

Sometimes can be less than recovered

Residents Recoveries

Individuals recovered from COVID-19

Residents Deaths

Resident deaths

Staff Confirmed

Sometimes can be less than recovered

Staff Recoveries

Individuals recovered from COVID-19

Staff Deaths

Staff deaths

Details

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

Methods

Public methods

Inherited methods

Method new()

Usage
nevada_scraper$new(
  log,
  url = "http://doc.nv.gov/About/Press_Release/covid19_updates/",
  id = "nevada",
  type = "html",
  state = "NV",
  jurisdiction = "state",
  pull_func = nevada_pull,
  restruct_func = nevada_restruct,
  extract_func = nevada_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
nevada_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.