get_regional_results | R Documentation |
Summarises results across regions either from input or from disk. See the examples for details.
get_regional_results(
regional_output,
results_dir,
date,
samples = TRUE,
forecast = FALSE
)
regional_output |
A list of output as produced by |
results_dir |
A character string indicating the folder containing the
|
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. |
samples |
Logical, defaults to |
forecast |
Logical, defaults to |
A list of estimates, forecasts and estimated cases by date of report.
# get example multiregion estimates
regional_out <- readRDS(system.file(
package = "EpiNow2", "extdata", "example_regional_epinow.rds"
))
# from output
results <- get_regional_results(regional_out$regional, samples = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.