get_timeseries: Get Timeseries from EpiNow

Description Usage Arguments Value Examples

View source: R/get.R

Description

Get Timeseries from EpiNow

Usage

1
get_timeseries(results_dir = NULL, date = NULL, summarised = FALSE)

Arguments

results_dir

A character string indicating the folder containing the EpiNow results to extract.

date

A Character string (in the format "yyyy-mm-dd") indicating the date to extract data for. Defaults to "latest" which finds the latest results available.

summarised

Logical, defaults to FALSE. Should full or summarised results be returned.

Value

A list of reproduction number estimates and nowcast cases

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## Assuming epiforecasts/covid is one repo higher
## Summary results
get_timeseries("../covid/_posts/global/nowcast/results/", 
               summarised = TRUE)

## Simulations
get_timeseries("../covid/_posts/global/nowcast/results/")

## End(Not run)
## Code
get_timeseries

epiforecasts/EpiNow documentation built on Oct. 26, 2020, 2:38 p.m.