enw_example | R Documentation |
Loads examples of nowcasts produced using example scripts. Used to streamline
examples, in package tests and to enable users to explore package
functionality without needing to install cmdstanr
.
enw_example(
type = c("nowcast", "preprocessed_observations", "observations", "script")
)
type |
A character string indicating the example to load. Supported options are
|
Depending on type
, a data.table
of the requested output OR
the file name(s) to generate these outputs (type
= "script")
Package data sets
germany_covid19_hosp
# Load the nowcast
enw_example(type = "nowcast")
# Load the preprocessed observations
enw_example(type = "preprocessed_observations")
# Load the latest observations
enw_example(type = "observations")
# Load the script used to generate these examples
# Optionally source this script to regenerate the example
readLines(enw_example(type = "script"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.