knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = FALSE,
  message = FALSE
)

Usage

To use canadacovidmetricsR package in a project:

library(canadacovidmetricsR)

This package is designed to provide key metrics regarding COVID-19 situation in Canada at province level using the data from OpenCovid API.

Brief introduction:

The canadacovidmetricsR package helps obtain national or provincial level information on covid cases for a specific time period. There are 4 functions which will return key metrics, including total cumulative cases, total cumulative deaths, total cumulative recovered cases and total cumulative vaccine completion. This data is returned as an R Dataframe which can be used directly for further analysis, plotting or applying statistical models.

Functions:

Obtain the total number of cases till date using get_cases():

Key Advantages:



UBC-MDS/canadacovidmetricsR documentation built on Feb. 6, 2022, 7 a.m.