hawaii_scraperR Documentation

Scraper class for general Hawaii COVID data

Description

Data comes from an image which is uploaded to extractable servers for analysis.

Facilities

The faciilty name

Tested

Tests administered

Results Pending

Current Residents who are tested but no outcome yet reported.

Negative

Cumulative number of residents who are negative.

Inconclusive

Cumulative number of residents who have neither positive nor negative results.

Positive

Cumulative number of residents who are positive.

Number of Persons in Medical Isolation

Residents in isolation.

Number of Persons in Quarantine

Residents in quarantine.

Hospitilization

Current residents hospitalized.

Recovered

Cumulative residents recovered.

Deaths

Cumulative residents who have died.

Details

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

Super class

R_GlobalEnv::generic_scraper -> hawaii_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
hawaii_scraper$new(
  log,
 
    url = "https://dps.hawaii.gov/blog/2020/03/17/coronavirus-covid-19-information-and-resources/",
  id = "hawaii",
  state = "HI",
  type = "img",
  jurisdiction = "state",
  pull_func = function(x) {     get_src_by_attr(x, "img", attr = "src", attr_regex =
    "(?i)Inmate-Test-Report") %>% {         gsub("-[0-9]+x[0-9]+", "", .)     } %>%
    magick::image_read() },
  restruct_func = function(x) ExtractTable(x),
  extract_func = hawaii_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
hawaii_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.