dc_scraper | R Documentation |
DC data pulled from an api call. Minimal cleaning needed.
Date
Staff positive.
Staff positive needs examining.
Staff recovered
Staff quarantined.
Staff quarantined needs examining.
Staff at work after leaving.
Staff deaths.
Cumulative residents confirmed.
Residents isolated
Residents recovered, cumulative.
Residents quarantined
Residents quarantined needs examining.
Residents released.
Resident deaths.
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
R_GlobalEnv::generic_scraper
-> dc_scraper
new()
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 )
clone()
The objects of this class are cloneable with this method.
dc_scraper$clone(deep = FALSE)
deep
Whether to make a deep clone.