virginia_scraperR Documentation

Scraper class for general Virginia COVID data

Description

VA cumulative confirmed does not account for transfers out as listed in the table. data is pulled from the html table directly

Location

The facility name.

Offenders on site

Infected and at facility

Offenders in hospital

Currently hospitalized

Death of COVID-19 positive offender

Residents deaths

Total positive offenders on site

No transfers but cumulative

Staff active

Staff currently infected

Details

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

Methods

Public methods

Inherited methods

Method new()

Usage
virginia_scraper$new(
  log,
  url = "https://vadoc.virginia.gov/news-press-releases/2020/covid-19-updates/",
  id = "virginia",
  type = "html",
  state = "VA",
  jurisdiction = "state",
  pull_func = virginia_pull,
  restruct_func = virginia_restruct,
  extract_func = virginia_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
virginia_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.