Learn R Programming

canadacovid (version 0.3.4)

get_summary: 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"))

Value

A data frame containing the summary data.

Arguments

split

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

Examples

Run this code

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

Run the code above in your browser using DataLab