get_summary: Get the most recent summary data

View source: R/summary.R

get_summaryR Documentation

Get the most recent summary data

Description

Runs a GET request of summary data from the COVID-19 tracker API, and returns parsed data. Via the split argument, data my be "overall" (all provinces/territories combined), by "province" (one row per province/territory) or by "region" (one row per health region).

Usage

get_summary(split = c("overall", "province", "region"))

Arguments

split

One of "overall", "province", or "region" to specify how the data is split.

Value

A data frame containing the summary data.

Examples


get_summary()
get_summary("province")
get_summary("region")

canadacovid documentation built on Aug. 23, 2022, 1:06 a.m.