combined_us_cases_data: gather US states confirmed cases from multiple sources

View source: R/combined_us_cases_data.R

combined_us_cases_dataR Documentation

gather US states confirmed cases from multiple sources

Description

This is a convenience function to combine results from sources providing US state-level datasets. A primary use case is to provide fodder for comparison and quality control over all the available datasets.

Usage

combined_us_cases_data()

Value

a data.frame

Author(s)

Sean Davis seandavi@gmail.com

See Also

Other case-tracking: align_to_baseline(), beoutbreakprepared_data(), bulk_estimate_Rt(), coronadatascraper_data(), covidtracker_data(), ecdc_data(), estimate_Rt(), jhu_data(), nytimes_county_data(), owid_data(), plot_epicurve(), test_and_trace_data(), usa_facts_data(), who_cases()

Examples

cus = combined_us_cases_data()
head(cus)
unique(cus$dataset)

library(ggplot2)
plot_epicurve(cus, filter_expression = state == 'GA',color='dataset') +
    ggtitle('Cumulative confirmed cases in Georgia')

plot_epicurve(cus, filter_expression = state == 'GA' & incidence>10,
    case_column='incidence', color='dataset', log=FALSE) +
    ggtitle('Daily confirmed cases in Georgia') + geom_smooth(alpha=0.25)


seandavi/sars2pack documentation built on May 13, 2022, 3:41 p.m.