georgia_scraperR Documentation

Scraper class for general Georgia COVID data

Description

Georgia data comes from an api which needs minimal cleaning.

Facility_Name

The faciilty name.

Latitude

Lat.

Longitude

Long.

Address

Address of the facility.

City

City location of facility.

State

State location of facility (should always be Georgia).

Zip

Zip code of facility.

Staff Confirmed

Cumulative staff confirmed.

Staff Deaths

Cumulative staff deaths.

Staff Recovered

Cumulative staff recovered.

Inmate Confirmed

Cumulative resident confirmed.

Inmate Deaths

Cumulative resident deaths.

Inmate Recovered

Cumulative resident recovered.

Private Prison

Y/N is this a private prison.

Confirmed Display

Display format for vizualizations.

Death Dispaly

Display format for vizualizations.

Recovered Display

Display format for vizualizations.

FID

Georgia internal facility id.

Details

The last run of the scraper was on 2021-01-11 and contained the extracted columns: Name, Staff.Confirmed, Staff.Recovered, Staff.Deaths, Residents.Confirmed, Residents.Recovered, Residents.Deaths, 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.Quarantine, Residents.Population, Residents.Active

Super class

R_GlobalEnv::generic_scraper -> georgia_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
georgia_scraper$new(
  log,
  url = "http://www.dcor.state.ga.us/content/CVD_Dashboard",
  id = "georgia",
  type = "json",
  state = "GA",
  jurisdiction = "state",
  pull_func = georgia_pull,
  restruct_func = function(x) as_tibble(x$features$attributes),
  extract_func = function(x) {     x %>% select(Name = Facility_Name, Staff.Confirmed
    = Staff_Confirmed, Staff.Recovered = Staff_Recovered, Staff.Deaths = Staff_Deaths,
    Residents.Confirmed = Inmate_Confirmed, Residents.Recovered = Inmate_Recovered,
    Residents.Deaths = Inmate_Deaths) }
)

Method clone()

The objects of this class are cloneable with this method.

Usage
georgia_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.