tennessee_scraperR Documentation

Scraper class for general Tennessee COVID data

Description

Data is pulled from a pdf at a static location that is updated. We need to find better documentation on what variables mean.

Location

The facility name

Residents Tested

Tests administred not actually residents tested

Residents Positive

Seems to be active rather than cumulative positive

Residents Negative

Negative tests not residents negative

Residents Pending

Residents currently pending

Residents Recovered

Residents recovered

Residents Deaths

Residents deaths

Staff confirmed

cant tell if cumulative

Staff returned to work

seems to be recovered

Staff Deaths

Staff deaths

Details

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

Super class

R_GlobalEnv::generic_scraper -> tennessee_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
tennessee_scraper$new(
  log,
  url = "https://www.tn.gov/correction.html",
  id = "tennessee",
  type = "pdf",
  state = "TN",
  jurisdiction = "state",
  pull_func = tennessee_pull,
  restruct_func = tennessee_restruct,
  extract_func = tennessee_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
tennessee_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.