alt_aggregate_counts: Alternate Aggregate UCLA data for website groupings

View source: R/alt_aggregate_counts.R

alt_aggregate_countsR Documentation

Alternate Aggregate UCLA data for website groupings

Description

Reads the UCLA aggregates counts for states for most recent data after a given date cutoff and reports either state level data or national data. States include values for the 50 states broken down by carceral type, prison, ICE, Federal, Juvenile, Psychiatric, and county. For prisons, data from the Marshall project is also incorporated.

Usage

alt_aggregate_counts(
  date_cutoff = DATE_CUTOFF,
  window = 31,
  all_dates = FALSE,
  week_grouping = TRUE
)

Arguments

date_cutoff

date, the earliest date of acceptable data to pull from if all_dates is FALSE for .Confirmed and .Deaths variables

window

integer, the day range of acceptable UCLA data to pull from if all_dates is FALSE for all variables EXCEPT .Confirmed and .Deaths

all_dates

logical, get time series data rather than just latest counts

week_grouping

logical, use weekly grouping for past data? else monthly

Value

data frame with aggregated counts at the state level by web groups

Examples

## Not run: 
alt_aggregate_counts()

## End(Not run)

uclalawcovid19behindbars/behindbarstools documentation built on April 22, 2022, 4:08 a.m.