federal_scraper | R Documentation |
Federal data comes from an api that reports information for official federal prisons, private facilities contracted out by federal government, and rrc facilities i.e. recovery rehabilitation centers. RRC data does not have detailed facility data only a city location. Not mentioned here is the location data that is available for all facilities including information on the kind of facility like max or min security and sex of residents. At present we know that residents.confirmed is consistently lower than residents.recovered this is because federal only reports confirmed for the current inmate population.
The facility id
staff active cases
staff recoveries
staff deaths
Residents active cases
residents deaths
cumulative residents recovered
Tests adminstered, I think not individuals tested
Current Pending Cases
Cumulative Positive Cases
The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Residents.Confirmed, Staff.Deaths, Residents.Deaths, Staff.Recovered, Residents.Recovered, Residents.Tested, Residents.Pending, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.Confirmed, Staff.Tested, Residents.Tadmin, Staff.Negative, Residents.Negative, Staff.Pending, Staff.Quarantine, Residents.Quarantine, Residents.Population, Residents.Active
R_GlobalEnv::generic_scraper
-> federal_scraper
new()
federal_scraper$new( log, url = "https://www.bop.gov/coronavirus/", id = "federal", type = "json", state = "federal", jurisdiction = "federal", pull_func = federal_pull, restruct_func = federal_restruct, extract_func = federal_extract )
clone()
The objects of this class are cloneable with this method.
federal_scraper$clone(deep = FALSE)
deep
Whether to make a deep clone.