get_summary {canadacovid}R 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")

[Package canadacovid version 0.3.4 Index]