Skip to content

Commit 6ab1437

Browse files
committed
covid_case_death_rates should only import starting from Dec 31 2020
1 parent 79867a2 commit 6ab1437

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

R/epipredict-data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#' Hopkins University, as downloaded from the CMU Delphi COVIDcast Epidata
66
#' API. This example data is a snapshot as of March 20, 2024, and
77
#' ranges from December 31, 2020 to December 31, 2021. It
8-
#' includes all states. It is used in the {epiprocess} correlation vignette.
8+
#' includes all states.
99
#'
10-
#' @format An [`epiprocess::epi_df`] (object of class `c("epi_df", "tbl_df", "tbl", "data.frame")`) with 37576 rows and 4 columns.
10+
#' @format An [`epiprocess::epi_df`] (object of class `c("epi_df", "tbl_df", "tbl", "data.frame")`) with 20496 rows and 4 columns.
1111
#' @section Data dictionary:
1212
#' The data has columns:
1313
#' \describe{

R/epiprocess-data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' ranges from March 1, 2020 to December 31, 2021. It is limited to California,
77
#' Florida, Texas, New York, Georgia, and Pennsylvania.
88
#'
9-
#' It is used in the {epiprocess} growth rate and `epi_slide` vignettes.
9+
#' It is used in the {epiprocess} growth rate, correlation, `epi_slide` vignettes.
1010
#'
1111
#' @format An [`epiprocess::epi_df`] (object of class `c("epi_df", "tbl_df", "tbl", "data.frame")`) with 4026 rows and 6 columns.
1212
#' @section Data dictionary:

R/sysdata.rda

-16.5 KB
Binary file not shown.

data-raw/covid_case_death_rates_tbl.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ library(epidatr)
33

44
source(here::here("data-raw/_helper.R"))
55

6-
d <- as.Date("2024-03-20")
6+
d <- as.Date("2022-05-31")
77

88
x <- pub_covidcast(
99
source = "jhu-csse",
1010
signals = "confirmed_7dav_incidence_prop",
1111
time_type = "day",
1212
geo_type = "state",
13-
time_values = epirange(20201201, 20211231),
13+
time_values = epirange(20201231, 20211231),
1414
geo_values = "*",
1515
as_of = d
1616
) %>%
@@ -21,7 +21,7 @@ y <- pub_covidcast(
2121
signals = "deaths_7dav_incidence_prop",
2222
time_type = "day",
2323
geo_type = "state",
24-
time_values = epirange(20201201, 20211231),
24+
time_values = epirange(20201231, 20211231),
2525
geo_values = "*",
2626
as_of = d
2727
) %>%

data/covid_case_death_rates.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
delayedAssign("covid_case_death_rates", local({
22
if (requireNamespace("epiprocess", quietly = TRUE)) {
3-
d <- as.Date("2024-03-20")
3+
d <- as.Date("2022-05-31")
44
epiprocess::as_epi_df(epidatasets:::covid_case_death_rates_tbl, as_of = d)
55
} else {
66
warning("Since the package `epiprocess` is not installed, this object will be loaded as a tibble (class `tbl_df`)")

man/cases_deaths_subset.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/covid_case_death_rates.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)