daedalus.data is a package and repository to handle input data files for daedalus, Jameel Institute’s combined economic-epidemiological model of emerging respiratory pandemic diseases.
daedalus.data prepares data objects to be used by the daedalus (see here) model.
You can install the development version of daedalus.data from the Jameel Institute R-universe with:
installation from R-universe
install.packages(
"daedalus.data",
repos = c(
"https://jameel-institute.r-universe.dev", "https://cloud.r-project.org"
)
)
or from GitHub GitHub with:
install.packages("pak")
pak::pak("jameel-institute/daedalus.data")
Both daedalus.data and daedalus are under active development. To use them, always ensure you have the latest versions on main branch.
Follow these basic principles. Refer to the Data chapter in R Packages for guidance.
-
Add raw data (such as CSV files) under
inst/extdata
. -
Add scripts that process raw data under
data-raw
. See existing scripts for guidance. In these scripts, useusethis::use_data()
to save processed data intodata
as.rda
files, which will be made available as package data.- To regenerate data, rerun these scripts.
-
Add documentation for package data under
R/<data_name>.R
See existing files such asR/country_data.R
for guidance. -
Document changes in the changelog
NEWS.md
.
This package contains the following data sets:
data(package = "daedalus.data")
Users can select infection parameters from among seven epidemics caused
by directly-transmitted viral respiratory pathogens, which are stored in
the package as daedalus.data::infection_data
, with epidemic
identifiers stored as daedalus.data::epidemic_names
.
- daedalus: Ingests daedalus.data data to create S3 class objects representing infections, populations, and epidemic mitigation measures.
- daedalus.compare: Ingests daedalus outputs to help compare epidemic scenarios.