Skip to contents

This data source of confirmed COVID-19 cases is based on reports made available by the Center for Systems Science and Engineering at Johns Hopkins University. This example data is downloaded from the CMU Delphi COVIDcast Epidata API. It is a snapshot as of October 28, 2021, and captures the cases from June 1, 2020 to May 31, 2021. It is limited to New Jersey and Florida.

This data set is used in the epiprocess vignette on outliers.

Usage

covid_incidence_outliers

Format

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

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:

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

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_outliers
#> An `epi_df` object, 730 x 3 with metadata:
#> * geo_type  = state
#> * time_type = day
#> * as_of     = 2021-10-28
#> 
#> # A tibble: 730 × 3
#>    geo_value time_value cases
#>  * <chr>     <date>     <dbl>
#>  1 fl        2020-06-01   667
#>  2 nj        2020-06-01   486
#>  3 fl        2020-06-02   617
#>  4 nj        2020-06-02   658
#>  5 fl        2020-06-03  1317
#>  6 nj        2020-06-03   541
#>  7 fl        2020-06-04  1419
#>  8 nj        2020-06-04   478
#>  9 fl        2020-06-05  1305
#> 10 nj        2020-06-05   825
#> # ℹ 720 more rows

# works
library(epiprocess)
covid_incidence_outliers
#> An `epi_df` object, 730 x 3 with metadata:
#> * geo_type  = state
#> * time_type = day
#> * as_of     = 2021-10-28
#> 
#> # A tibble: 730 × 3
#>    geo_value time_value cases
#>  * <chr>     <date>     <dbl>
#>  1 fl        2020-06-01   667
#>  2 nj        2020-06-01   486
#>  3 fl        2020-06-02   617
#>  4 nj        2020-06-02   658
#>  5 fl        2020-06-03  1317
#>  6 nj        2020-06-03   541
#>  7 fl        2020-06-04  1419
#>  8 nj        2020-06-04   478
#>  9 fl        2020-06-05  1305
#> 10 nj        2020-06-05   825
#> # ℹ 720 more rows

# fails
if (FALSE) { # \dontrun{
data(covid_incidence_outliers, package = "epiprocess")
} # }