federal_population_scraperR Documentation

Scraper class for Federal prison population data

Description

Data pulled from federal pouplation api Brief description of api can be found here http://prisondb.github.io/bopapidocs.html

state

US State not always provided

name

Name of institution

popCount

Current Poulation

groupDescription

Description of group type

sortKey
sortNameKey
sortpzapSequence
indentationIndicator
recordType

Details

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

Super class

R_GlobalEnv::generic_scraper -> federal_population_scraper

Methods

Public methods

Inherited methods

Method new()

Usage
federal_population_scraper$new(
  log,
  url = "https://www.bop.gov/mobile/about/population_statistics.jsp",
  id = "federal_population",
  type = "json",
  state = "federal",
  jurisdiction = "federal",
  pull_func = federal_population_pull,
  restruct_func = federal_population_restruct,
  extract_func = federal_population_extract
)

Method clone()

The objects of this class are cloneable with this method.

Usage
federal_population_scraper$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.