north_carolina_scraperR Documentation

Scraper class for general North Carolina COVID data

Description

NC has data in an isolated html table which requires minimal cleaning. Guidelines and definitions for facilities are found here https://www.ncdps.gov/our-organization/adult-correction/prisons/prisons-info-covid-19

Facility

The facility name

CumulativeOffenderTests

All tests

OffendersTested

Number of individuals tested

Positive

Individuals positive, probably not cumulative as confirmed is sometimes less than recovered

Negative

Individuals Negative

PresumedRecovered

presumed recovered following NCDHHS guidance

ActiveCases

Active residents with infection who are also quarantined

Details

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

Super class

R_GlobalEnv::generic_scraper -> north_carolina_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
north_carolina_scraper$new(
  log,
  url = "https://opus.doc.state.nc.us/DOPCovid19Stats/services/facilitystatsServlet",
  id = "north_carolina",
  type = "html",
  state = "NC",
  jurisdiction = "state",
  pull_func = north_carolina_pull,
  restruct_func = north_carolina_restruct,
  extract_func = north_carolina_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
north_carolina_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.