west_virginia_scraperR Documentation

Scraper class for general West Virginia COVID data

Description

WV data resides in a tsv file hosted on the doc website. Staff information is only provided at the state wide table and a number of coding steps are necessary to extract the information.

Facility

The facility name

County

County location

Pop

Resident population

Negative

Residents negative

Positive active

Residents currently infected

Pending

Resident tests pending, all inmates/residents awaiting test results remain in isolation

Total

cumulative tests refers to number of tests performed and completed, NOT the number of inmates or residents tested

Recovered

Residents recovered

Cumulative Cases

Residents cumulative cases

Quarantine

Residents in quarantine

Staff Negative

Statewide only

Staff Positive active

Statewide only

Staff Pending

Statewide only

Staff Total

Statewide only

Staff Recovered

Statewide only

Staff Cumulative

Statewide only

Resident Deaths

Statewide only, deaths of positive inmates are not included in this data when medical opinion does not conclude COVID-19 caused or contributed to the death, pending any further medical determination. Deaths not included per this criteria: MOCC, 6

Details

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

Super class

R_GlobalEnv::generic_scraper -> west_virginia_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
west_virginia_scraper$new(
  log,
  url = "https://dhhr.wv.gov/COVID-19/Pages/Correctional-Facilities.aspx",
  id = "west_virginia",
  type = "csv",
  state = "WV",
  jurisdiction = "state",
  pull_func = west_virginia_pull,
  restruct_func = west_virginia_restruct,
  extract_func = west_virginia_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
west_virginia_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.