south_dakota_scraperR Documentation

Scraper class for general South Dakota COVID data

Description

Data is pulled from a pdf on the page whose link is occasionally updated. Within the pdf there are two tables with data. One for staff and another for residents.

Facility

The facility name.

Staff Positive
Staff Negative
Staff Recovered
Staff Death
Resident Positive
Resident Negative
Resient Recovered
Resident Death

Details

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

Super class

R_GlobalEnv::generic_scraper -> south_dakota_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
south_dakota_scraper$new(
  log,
  url = "https://doc.sd.gov/about/Coronavirus.aspx",
  id = "south_dakota",
  type = "pdf",
  state = "SD",
  jurisdiction = "state",
  pull_func = south_dakota_pull,
  restruct_func = south_dakota_restruct,
  extract_func = south_dakota_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
south_dakota_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.