get_data: Get COVID-19 data as data frame

Description Usage Arguments Value Examples

View source: R/get_data.R

Description

Retrieve covid data in pandas dataframe format witg tge time periods provided

Usage

1
get_data(date_from, date_to, location)

Arguments

date_from

Start date of the data range with format like '2021-10-31'. By default it represents 7 days prior to today's date

date_to

End date of data range with format like '2021-10-31'. By default it represents today's date

location

Charactor vector of target country names. By default it retrieves all countries

Value

data.frame

Examples

1
get_data(date_from = "2022-01-01", date_to = "2022-01-07", location = c("Canada"))

UBC-MDS/covizr documentation built on Feb. 7, 2022, 9:11 a.m.