Skip to content

Commit d16f608

Browse files
committed
dataset renamed
1 parent 1a4f3e7 commit d16f608

10 files changed

+10
-10
lines changed

R/layer_population_scaling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#' @export
4949
#' @examples
5050
#' library(dplyr)
51-
#' jhu <- jhu_csse_daily_subset %>%
51+
#' jhu <- cases_deaths_subset %>%
5252
#' filter(time_value > "2021-11-01", geo_value %in% c("ca", "ny")) %>%
5353
#' select(geo_value, time_value, cases)
5454
#'

R/step_population_scaling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#' @export
4646
#' @examples
4747
#' library(dplyr)
48-
#' jhu <- jhu_csse_daily_subset %>%
48+
#' jhu <- cases_deaths_subset %>%
4949
#' filter(time_value > "2021-11-01", geo_value %in% c("ca", "ny")) %>%
5050
#' select(geo_value, time_value, cases)
5151
#'

man/layer_population_scaling.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/step_population_scaling.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.

tests/testthat/_snaps/arg_is_.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
# simple surface step test
378378

379379
Code
380-
epi_recipe(jhu_csse_daily_subset) %>% step_epi_lag(death_rate, lag = "hello")
380+
epi_recipe(cases_deaths_subset) %>% step_epi_lag(death_rate, lag = "hello")
381381
Condition
382382
Error in `step_epi_lag()`:
383383
! `lag` must be a non-negative integer.

tests/testthat/test-arg_is_.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,6 @@ test_that("coerce scalar to date", {
149149
test_that("simple surface step test", {
150150
expect_snapshot(
151151
error = TRUE,
152-
epi_recipe(jhu_csse_daily_subset) %>% step_epi_lag(death_rate, lag = "hello")
152+
epi_recipe(cases_deaths_subset) %>% step_epi_lag(death_rate, lag = "hello")
153153
)
154154
})

tests/testthat/test-check-training-set.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test_that("training set validation works", {
2-
template <- jhu_csse_daily_subset[1, ]
2+
template <- cases_deaths_subset[1, ]
33
rec <- list(template = template)
44
t1 <- template
55

tests/testthat/test-population_scaling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test_that("Number of columns and column names returned correctly, Upper and lowe
9090

9191
## Postprocessing
9292
test_that("Postprocessing workflow works and values correct", {
93-
jhu <- jhu_csse_daily_subset %>%
93+
jhu <- cases_deaths_subset %>%
9494
dplyr::filter(time_value > "2021-11-01", geo_value %in% c("ca", "ny")) %>%
9595
dplyr::select(geo_value, time_value, cases)
9696

tests/testthat/test-snapshots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
train_data <- jhu_csse_daily_subset
1+
train_data <- cases_deaths_subset
22
expect_snapshot_tibble <- function(x) {
33
expect_snapshot_value(x, style = "deparse", cran = FALSE)
44
}

tests/testthat/test-target_date_bug.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/cmu-delphi/epipredict/issues/290
33

44
library(dplyr)
5-
train <- jhu_csse_daily_subset |>
5+
train <- cases_deaths_subset |>
66
filter(time_value >= as.Date("2021-10-01")) |>
77
select(geo_value, time_value, cr = case_rate_7d_av, dr = death_rate_7d_av)
88
ngeos <- n_distinct(train$geo_value)

0 commit comments

Comments
 (0)