get_time_series_data_link: Assemble a data frame that stores all links to JHU data...

View source: R/get_time_series_data_link.R

get_time_series_data_linkR Documentation

Description

Assemble a data frame that stores all links to JHU data series files and download truth data issued in the most recent week/day.

Usage

get_time_series_data_link(
  measure,
  geography = c("US", "global"),
  first_page_only = FALSE,
  download_files = FALSE,
  download_recent = TRUE
)

Arguments

measure

string specifying measure of covid dynamics: one of 'deaths' or 'cases'

geography

character, which data to read. Default is "US", other option is "global"

first_page_only

boolean specify whether to only scrape the first page of github repo. Default to FALSE that scrapes all history

download_files

boolean specify whether to download truth files after scraping file links. Default to FALSE

download_recent

boolean specify whether to download the most recent truth file only or all truth files in the most recent week. Default to TRUE to download the most recent file.

Value

a data frame with columns date and file_links


reichlab/covidData documentation built on April 5, 2024, 5 p.m.