nevada_scraper | R Documentation |
The NV Scraper works with a standalone Microsoft Power BI app and extracts data from all facilities listed as correctional by saving a copy of the html after selecting a single facility. Because an html document is saved for every selection the 'raw' data is simply an html file which embeds each of these saved html files as an iframe. The scraper is not very robust to changes in the names of labels and as such should be accurate but sensitive to changes to the design of the app. On several occasions data for the number of residents confirmed has been less than the number of residents recovered which should not happen in our own records. Note that the dashboard also contains information on facilities other than for incarcerated populations.
The facility name
Sometimes can be less than recovered
Individuals recovered from COVID-19
Resident deaths
Sometimes can be less than recovered
Individuals recovered from COVID-19
Staff deaths
The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Residents.Confirmed, Residents.Deaths, Staff.Confirmed, Staff.Deaths, State, Date, id, source, jurisdiction. We are missing the following core variables for the analysis: Staff.Recovered, Residents.Recovered, Staff.Tested, Residents.Tested, Residents.Tadmin, Staff.Negative, Residents.Negative, Staff.Pending, Residents.Pending, Staff.Quarantine, Residents.Quarantine, Residents.Population, Residents.Active
R_GlobalEnv::generic_scraper
-> nevada_scraper
new()
nevada_scraper$new( log, url = "http://doc.nv.gov/About/Press_Release/covid19_updates/", id = "nevada", type = "html", state = "NV", jurisdiction = "state", pull_func = nevada_pull, restruct_func = nevada_restruct, extract_func = nevada_extract )
clone()
The objects of this class are cloneable with this method.
nevada_scraper$clone(deep = FALSE)
deep
Whether to make a deep clone.