covid19.Toronto_city.data: function to import data from the city of Toronto, ON - Canada...

View source: R/covid19_Canada.R

covid19.Toronto_city.dataR Documentation

function to import data from the city of Toronto, ON - Canada as reported by the City of Toronto https://www.toronto.ca/home/covid-19/covid-19-pandemic-data/

Description

function to import data from the city of Toronto, ON - Canada as reported by the City of Toronto https://www.toronto.ca/home/covid-19/covid-19-pandemic-data/

Usage

covid19.Toronto_city.data(
  data.fmt = "TS",
  local.data = FALSE,
  debrief = FALSE,
  OLD.fmt = FALSE,
  acknowledge = FALSE
)

Arguments

data.fmt

"TS" for TimeSeries of cumulative cases or "original" for the data as reported in the google-document with multiple sheets

local.data

boolean flag to indicate whether the data will be read from the local repo, in case of connectivity issues or data integrity

debrief

boolean specifying whether information about the read data is going to be displayed in screen

OLD.fmt

boolean flag to specify if the data is being read in an old format

acknowledge

boolean flag to indicate that the user acknowledges where the data is coming from. If FALSE, display data acquisition messages.

Value

a dataframe (or a list in the case of "original") with the latest data reported for the city of Toronto, ON - Canada


covid19.analytics documentation built on Oct. 16, 2023, 1:06 a.m.