michigan_scraper | R Documentation |
MI resident data scraper, this information is pulled from a separate table from staff data and though it says we are missing the staff data below we shouldnt be concerned about that. Note that there does not appear to be any sort of consistency or the position of this image and as such this scraper is extremely error prone. Fixing this should be a priority. Note that the column for Prisoners tested greatly underestimates the number of tests administered which is reported elsewhere in the page.
The facility name
Residents tested, not tests adminstered
Residents confirmed
Residents negative
Residents active
Residents deaths
The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Residents.Tested, Residents.Confirmed, Residents.Negative, Residents.Active, Residents.Deaths, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.Confirmed, Staff.Deaths, Staff.Recovered, Residents.Recovered, Staff.Tested, Residents.Tadmin, Staff.Negative, Staff.Pending, Residents.Pending, Staff.Quarantine, Residents.Quarantine, Residents.Population
R_GlobalEnv::generic_scraper
-> michigan_scraper
new()
michigan_scraper$new( log, url = "https://medium.com/@MichiganDOC/mdoc-takes-steps-to-prevent-spread-of-coronavirus-covid-19-250f43144337", id = "michigan", type = "img", state = "MI", jurisdiction = "state", pull_func = michigan_pull, restruct_func = michigan_restruct, extract_func = michigan_extract )
clone()
The objects of this class are cloneable with this method.
michigan_scraper$clone(deep = FALSE)
deep
Whether to make a deep clone.