get_canada_regional_cases: Fetch daily COVID cases by province for Canada

Description Usage Arguments Value Examples

View source: R/get_canada_regional_cases.R

Description

Fetches daily COVID cases, and deaths by province collated by Provincial Canadian Health Authorities Data is available at https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html

Usage

1
get_canada_regional_cases(out = "timeseries")

Arguments

out

Character String specifying output data format "timeseries", "total", default: "timeseries".

Value

A data.frame of COVID cases by province in Canada

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
 total_cases = get_canada_regional_cases(out = "total")
 
 rnaturalearth::ne_states(country = "canada", returnclass="sf") %>% 
   dplyr::left_join(total_cases, by = c('name_en' = 'province')) %>% 
   ggplot2::ggplot() +
   ggplot2::theme_void() +
   ggplot2::geom_sf(aes(fill = cases_confirmed)) +
   ggplot2::labs(fill = 'Confirmed Cases')  

## End(Not run)

epiforecasts/NCoVUtils documentation built on June 26, 2020, 1:20 a.m.