covid_incidence_county_subset: Subset of JHU daily COVID-19 cases from counties in...

covid_incidence_county_subsetR Documentation

Subset of JHU daily COVID-19 cases from counties in Massachusetts and Vermont

Description

This data source of confirmed COVID-19 cases and deaths is based on reports made available by the Center for Systems Science and Engineering at Johns Hopkins University. This example data is a snapshot as of March 20, 2024, and ranges from March 1, 2020 to December 31, 2021. It is limited to counties from Massachusetts and Vermont.

It is used in the epiprocess aggregation vignette.

Usage

covid_incidence_county_subset

Format

An object of class epi_df (inherits from tbl_df, tbl, data.frame) with 16212 rows and 5 columns.

Data dictionary

The data has columns:

geo_value

the geographic value associated with each row of measurements.

time_value

the time value associated with each row of measurements.

cases

Number of new confirmed COVID-19 cases, daily

county_name

the name of the county

state_name

the full name of the state

Source

This object contains a modified part of the COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University as republished in the COVIDcast Epidata API. This data set is licensed under the terms of the Creative Commons Attribution 4.0 International license by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering. Copyright Johns Hopkins University 2020.

Modifications:

  • From the COVIDcast Epidata API: These signals are taken directly from the JHU CSSE COVID-19 GitHub repository without changes. The 7-day average signals are computed by Delphi by as moving averages of the preceding 7 days, so the signal for June 7 is the average of the underlying data for June 1 through 7, inclusive.

  • Furthermore, the data has been limited to a very small number of rows, formatted into an epi_df, and the signal names slightly altered.

Examples

# Since this is a re-exported dataset, it cannot be loaded using
# the `data()` function. `data()` looks for a file of the same name
# in the `data/` directory, which doesn't exist in this package.
# works
epiprocess::covid_incidence_county_subset

# works
library(epiprocess)
covid_incidence_county_subset

# fails
## Not run: 
data(covid_incidence_county_subset, package = "epiprocess")

## End(Not run)

cmu-delphi/epiprocess documentation built on Oct. 29, 2024, 5:37 p.m.