get_data: Download and save Covid19 data

Description Usage Arguments Value Examples

View source: R/get_data.R

Description

Downloads detailed COVID-19 case data from default BCCDC webpage URL (passed in as string) as a .csv file to default relative path directory (also passed in as string).

Usage

1
2
3
4
5
get_data(
  url = paste0("http://www.bccdc.ca/Health-Info-Site/",
    "Documents/BCCDC_COVID19_Dashboard_Case_Details.csv"),
  out_folder = "data"
)

Arguments

url

string A webpage from which .csv file is downloaded to relative data folder directory, provided wit ha default value.

out_folder

string A relative path directory comprising two folder separated by a forward slash ("/"), provided with a default value.

Value

A data.frame containing downloaded detailed case data.

Examples

1
2
3
4
5
get_data()
get_data(
  url = paste0("http://www.bccdc.ca/Health-Info-Site/",
    "Documents/BCCDC_COVID19_Dashboard_Case_Details.csv"),
  out = "data")

UBC-MDS/rbccovideda documentation built on Feb. 5, 2022, 8:13 a.m.