Skip to contents

Read data from OpenDengue github repository

Usage

read_data(
  extract,
  columns = NULL,
  as_data_frame = FALSE,
  showProgress = TRUE,
  cache = TRUE
)

Arguments

extract

character. national, spatial or temporal

columns

character vector. Columns names to subset.

as_data_frame

logical. If TRUE returns a tibble object. If FALSE returns an Arrow Table object. Defaults to FALSE.

showProgress

logical. Show download bar progress on console.

cache

logical. Use cached data after first download.

Value

A data.frame or an Arrow Table object.

Examples

if (FALSE)  if (interactive()) {
read_data(extract = "national", as_data_frame = TRUE)
}