Skip to content

Commit e4f6eeb

Browse files
committed
rename cancovid to can_prov_cases to match epipredict
1 parent fc9a9b7 commit e4f6eeb

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

R/epipredict-data.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@
8585
#'
8686
#' THIS IS A STUB This dataset covers the period from March 2020 to March 2023 and is
8787
#' used in the [epipredict] slide vignette.
88-
"cancovid"
89-
88+
"can_prov_cases"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## code to prepare `cancovid` dataset goes here
1+
## code to prepare `can_prov_cases` dataset goes here
22

33
library(dplyr)
44
library(epiprocess)
@@ -107,7 +107,7 @@ ca_pop <- read_csv(
107107
abbrev_map <- setNames(ca_pop$province, ca_pop$abbreviation)
108108

109109
# Read in data and convert to `epi_df`s.
110-
cancovid <- purrr::map2(commit_pages$data_url, commit_pages$date, function(url, date) {
110+
can_prov_cases <- purrr::map2(commit_pages$data_url, commit_pages$date, function(url, date) {
111111
raw <- readr::read_csv(
112112
url,
113113
col_types = cols(
@@ -139,9 +139,9 @@ cancovid <- purrr::map2(commit_pages$data_url, commit_pages$date, function(url,
139139

140140
return(result)
141141
})
142-
names(cancovid) <- commit_pages$date
143-
cancovid <- cancovid %>% bind_rows(.id = "version") %>%
142+
names(can_prov_cases) <- commit_pages$date
143+
can_prov_cases <- can_prov_cases %>% bind_rows(.id = "version") %>%
144144
mutate(version = lubridate::ymd(version)) %>%
145145
arrange(version)
146146

147-
usethis::use_data(cancovid, overwrite = TRUE)
147+
usethis::use_data(can_prov_cases, overwrite = TRUE)

data/can_prov_cases.rda

43.4 KB
Binary file not shown.

data/cancovid.rda

-43.4 KB
Binary file not shown.

man/can_prov_cases.Rd

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

0 commit comments

Comments
 (0)