cases_deaths_subset | R Documentation |
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 California, Florida, Texas, New York, Georgia, and Pennsylvania.
It is used in the epiprocess growth rate and epi_slide
vignettes.
cases_deaths_subset
An object of class epi_df
(inherits from tbl_df
, tbl
, data.frame
) with 4026 rows and 6 columns.
The data has columns:
the geographic value associated with each row of measurements.
the time value associated with each row of measurements.
7-day average signal of number of new confirmed COVID-19 cases per 100,000 population, daily
7-day average signal of number of new confirmed deaths due to COVID-19 per 100,000 population, daily
Number of new confirmed COVID-19 cases, daily
7-day average signal of number of new confirmed COVID-19 cases, daily
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: The case signal is taken directly from the JHU CSSE COVID-19 GitHub repository. The rate signals were computed by Delphi using Census population data. The 7-day average signals were computed by Delphi by calculating 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, the
signal names slightly altered, and formatted into an epi_df
.
# 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::cases_deaths_subset
# works
library(epiprocess)
cases_deaths_subset
# fails
## Not run:
data(cases_deaths_subset, package = "epiprocess")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.