dc_scraperR Documentation

Scraper class for general dc COVID data

Description

DC data pulled from an api call. Minimal cleaning needed.

DATE_REPORTED

Date

TOTAL_POSITIVE_PSDP

Staff positive.

TOTAL_POSITIVE_OUT_PSDP

Staff positive needs examining.

RECOVRD_RETURND_TO_WORK_PSDP

Staff recovered

PERSON_QUARANTINE_PSDP

Staff quarantined.

OUT_POSITIVE_QUARANTINE_PSDP

Staff quarantined needs examining.

RETURND_TO_WORK_PSDP

Staff at work after leaving.

LIVE_LOST_PERSONNEL_PSDP

Staff deaths.

TOTAL_POSITIVE_PSDR

Cumulative residents confirmed.

TOTAL_POSITIVE_ISO_PSDR

Residents isolated

RECOVRD_RES_PSDR

Residents recovered, cumulative.

RES_QUARANTINE_PSDR

Residents quarantined

OUT_POSITIVE_QUARANTINE_PSDR

Residents quarantined needs examining.

RETURND_TO_GP_PSDR

Residents released.

LIVE_LOST_RES_PSDR

Resident deaths.

Details

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

Super class

R_GlobalEnv::generic_scraper -> dc_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
dc_scraper$new(
  log,
 
    url = "https://opendata.dc.gov/datasets/dc-covid-19-department-of-corrections/data?orderBy=DATE_REPORTED&orderByAsc=false",
  id = "dc",
  type = "json",
  state = "DC",
  jurisdiction = "state",
  pull_func = dc_pull,
  restruct_func = dc_restruct,
  extract_func = dc_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
dc_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.