virginia_beach_scraperR Documentation

Scraper class for general virginia_beach COVID data

Description

Virginia Beach reports data in two html tables one for staff and another for residents. Data is reported regularly and the columns reported has changed over time.

INMATES TESTED
INMATE NEGATIVE RESULTS
INMATE POSITIVE RESULTS
INMATE RESULTS PENDING
ACTIVE INMATE CASES
INMATES CLEARED OR RELEASED
INMATE DEATHS DUE TO COVID-19
TOTAL INMATES (CURRENT JAIL POPULATION)
DEPUTIES TESTED
DEPUTY NEGATIVE RESULTS
DEPUTY POSITIVE RESULTS
DEPUTY RESULTS PENDING
ACTIVE DEPUTY CASES
DEPUTIES CLEARED
TOTAL DEPUTIES

Details

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

Super class

R_GlobalEnv::generic_scraper -> virginia_beach_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
virginia_beach_scraper$new(
  log,
  url = "https://www.vbso.net/coronavirus",
  id = "virginia_beach",
  type = "html",
  state = "VA",
  jurisdiction = "county",
  pull_func = virginia_beach_pull,
  restruct_func = virginia_beach_restruct,
  extract_func = virginia_beach_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
virginia_beach_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.