alabama_scraperR Documentation

Scraper class for general Alabama COVID data

Description

Alabama scraper comes directly from an api. Minimal cleaning required. Note that Alabama does not report the number of tests administered but rather the number of residents tested.

Facility

The facility name.

Type

The type of facility i.e. private, work-release, major, etc

Street

Address

City

City

State

State

Zip

Zip

ShortName

Facility alternative name

Inmate_Tested

The number of inmates tested rather than total tests administered.

Inmate_Positive

Cummulative Inmates Tested

Inmate_Pending

Inmate_Pending

Inmate_Recovered

Cummulative Inmates Recovered

Inmate_Death

Cumulative Deaths

Employee_Positive

Employees Positive

Employee_Recovered

Employees Recovered

Employee_Death

Employees Death

Details

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

Super class

R_GlobalEnv::generic_scraper -> alabama_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
alabama_scraper$new(
  log,
  url = "http://www.doc.alabama.gov/covid19news",
  id = "alabama",
  type = "json",
  state = "AL",
  jurisdiction = "state",
  pull_func = alabama_pull,
  restruct_func = alabama_restruct,
  extract_func = alabama_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
alabama_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.