aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorNaeem Model <me@nmode.ca>2023-07-23 02:43:22 +0000
committerNaeem Model <me@nmode.ca>2023-07-23 02:43:22 +0000
commit1410d8167185f94beb213602e8221980b96d0b06 (patch)
tree0cfed8c00d669a4380f2bc2803563ff0d22f7698 /R
parenta9b7d15569ee56ebacb1375898698d026a64ec79 (diff)
Add COVID-19 Canada datasets
Diffstat (limited to 'R')
-rw-r--r--R/data.R32
1 files changed, 32 insertions, 0 deletions
diff --git a/R/data.R b/R/data.R
new file mode 100644
index 0000000..6de352d
--- /dev/null
+++ b/R/data.R
@@ -0,0 +1,32 @@
+#' COVID-19 Canada National Case Counts, 2020-2022
+#'
+#' Daily national COVID-19 case counts in Canada, from the start of the pandemic
+#' until the end of 2022. Provided by the COVID-19 Canada Open Data Working
+#' Group.
+#'
+#' @format A data frame with 1082 observations on 3 variables:
+#' \describe{
+#' \item{date}{The date of reporting in YYYY-MM-DD format.}
+#' \item{cases}{The daily number of cases.}
+#' \item{cumulative_cases}{The cumulative number of cases.}
+#' }
+#'
+#' @source \url{https://opencovid.ca}
+"COVIDCanada"
+
+#' COVID-19 Canada Provincial and Territorial Case Counts, 2020-2022
+#'
+#' Daily COVID-19 case counts for each Canadian province and territory, from the
+#' start of the pandemic until the end of 2022. Provided by the COVID-19 Canada
+#' Open Data Working Group.
+#'
+#' @format A data frame with 13169 observations on 4 variables:
+#' \describe{
+#' \item{region}{The two-letter code for the Canadian province or territory.}
+#' \item{date}{The date of reporting in YYYY-MM-DD format.}
+#' \item{cases}{The daily number of cases.}
+#' \item{cumulative_cases}{The cumulative number of cases.}
+#' }
+#'
+#' @source \url{https://opencovid.ca}
+"COVIDCanadaPT"