knitr::opts_chunk$set( collapse = TRUE, comment = "#>", echo = FALSE )
There are four MSF outbreak dictionaries available:
You can read more about the outbreak dictionaries at https://r4epis.netlify.com/outbreaks
The AJS dictionary contains definitions for r nrow(epidict::msf_dict("AJS"))
variables:
library(epidict) ajs <- msf_dict("AJS") names_desc <- ajs[c("data_element_formname", "data_element_shortname", "data_element_description", "data_element_valuetype")] DT::datatable(names_desc)
The dictionaries are exported using option codes that can be translated to human-readable format. This table shows how they are translated.
ajs_codes <- tidyr::unnest(ajs, cols = options)[c("data_element_shortname", "data_element_valuetype", "option_code", "option_name", "option_order_in_set")] DT::datatable(ajs_codes)
The Cholera dictionary contains definitions for r nrow(epidict::msf_dict("Cholera"))
variables:
library(epidict) cholera <- msf_dict("Cholera") names_desc <- cholera[c("data_element_formname", "data_element_shortname", "data_element_description", "data_element_valuetype")] DT::datatable(names_desc)
The dictionaries are exported using option codes that can be translated to human-readable format. This table shows how they are translated.
cholera_codes <- tidyr::unnest(cholera, cols = options)[c("data_element_shortname", "data_element_valuetype", "option_code", "option_name", "option_order_in_set")] DT::datatable(cholera_codes)
The Measles dictionary contains definitions for r nrow(epidict::msf_dict("Measles"))
variables:
library(epidict) measles <- msf_dict("Measles") names_desc <- measles[c("data_element_formname", "data_element_shortname", "data_element_description", "data_element_valuetype")] DT::datatable(names_desc)
The dictionaries are exported using option codes that can be translated to human-readable format. This table shows how they are translated.
measles_codes <- tidyr::unnest(measles, cols = options)[c("data_element_shortname", "data_element_valuetype", "option_code", "option_name", "option_order_in_set")] DT::datatable(measles_codes)
The Meningitis dictionary contains definitions for r nrow(epidict::msf_dict("Meningitis"))
variables:
library(epidict) meningitis <- msf_dict("Meningitis") names_desc <- meningitis[c("data_element_formname", "data_element_shortname", "data_element_description", "data_element_valuetype")] DT::datatable(names_desc)
The dictionaries are exported using option codes that can be translated to human-readable format. This table shows how they are translated.
meningitis_codes <- tidyr::unnest(meningitis, cols = options)[c("data_element_shortname", "data_element_valuetype", "option_code", "option_name", "option_order_in_set")] DT::datatable(meningitis_codes)
You can explore the excel-formatted dictionaries with browseURL(system.file("extdata", "MSF-outbreak-dict.xlsx", package = "epidict"))
, but treat it as read-only.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.