View source: R/alt_aggregate_counts.R
alt_aggregate_counts | R Documentation |
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.
alt_aggregate_counts( date_cutoff = DATE_CUTOFF, window = 31, all_dates = FALSE, week_grouping = TRUE )
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 |
data frame with aggregated counts at the state level by web groups
## Not run: alt_aggregate_counts() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.