Introduction
The National Epidemiological Surveillance System (SINAVE) of the Ministry of Health
of Mexico has 11 datasets of vector-borne diseases: RICKETT, CHAGAS,
FIEBRE_NILO, LEISHMAN, ENCEFALITIS, FIEBREMAYARO, FIEBREAMARILLA,
PALUDISMO, ZIKA, CHIKUNGUNYA and DENGUE. Their use is restricted to the
staff of the Ministry of Health (state and federal), in particular the
departments of Epidemiology and of Vector-Borne Diseases.
The temporal resolution of the datasets is daily and the spatial
resolution is the house, so they can be aggregated by neighbourhood,
locality, municipality and state to make tables, graphs and maps.
In the dengueverse the datasets are loaded into R with two
densnv functions:
read(): reads one or several txt files of a
folder.
read_dengue_dataset(): reads the dengue dataset and
filters it by geographic level and case status.
The boldenr package is being replaced by densnv; these two functions
are recommended.
path <- "dge/denv/2026" # folder with the txt files
path_txt <- "dge/denv/2026/DENGUE2_.txt" # dengue file
Main columns
| ANO, SEM |
Year and epidemiological week |
| FEC_INI_SIGNOS_SINT |
Date of onset of symptoms |
| ESTATUS_CASO |
1 probable, 2 confirmed, 3 discarded |
| CVE_EDO_RES, CVE_MPO_RES, CVE_LOC_RES |
State, municipality and locality of residence (INEGI
keys) |
| CVE_EDO_REP, CVE_MPO_REP, CVE_LOC_REP |
State, municipality and locality of report (INEGI
keys) |
| DES_DIAG_FINAL |
Final diagnosis: non-severe dengue, with warning signs
or severe |
| IDE_EDA_ANO, IDE_SEX |
Age (years) and sex |
In non-endemic areas the positive cases are reported in the place
where they were exposed, so the place of report
(*_REP) is the place of transmission. In endemic areas
report and residence are almost the same.
read()
| path |
string |
Path of the folder with the txt files |
| vbd |
string |
Disease of interest (RICKETT, CHAGAS, FIEBRE_NILO,
LEISHMAN, ENCEFALITIS, FIEBREMAYARO, FIEBREAMARILLA, PALUDISMO, ZIKA,
CHIKUNGUNYA or DENGUE) |
| complete |
logical |
TRUE for the arboviruses (dengue, chikungunya and
Zika); FALSE for the other diseases |
read(path = path, vbd = "DENGUE", complete = TRUE) |>
dim()
#> [1] 81352 432
read(path = path, vbd = "DENGUE", complete = FALSE) |>
dim()
#> [1] 81352 34
A summary of the dataset, without showing rows:
read(path = path, vbd = "DENGUE", complete = FALSE) |>
dplyr::select(dplyr::any_of(c("ANO", "SEM", "ESTATUS_CASO", "IDE_EDA_ANO",
"IDE_SEX", "DES_DIAG_FINAL"))) |>
skimr::skim()
Data summary
| Name |
dplyr::select(…) |
| Number of rows |
81352 |
| Number of columns |
6 |
| Key |
NULL |
| _______________________ |
|
| Column type frequency: |
|
| character |
1 |
| numeric |
5 |
| ________________________ |
|
| Group variables |
None |
Variable type: character
| DES_DIAG_FINAL |
0 |
1 |
0 |
27 |
41471 |
6 |
0 |
Variable type: numeric
| ANO |
0 |
1 |
2025.99 |
0.08 |
2025 |
2026 |
2026 |
2026 |
2026 |
▁▁▁▁▇ |
| SEM |
0 |
1 |
28.19 |
13.19 |
1 |
18 |
31 |
40 |
53 |
▃▃▆▇▃ |
| ESTATUS_CASO |
0 |
1 |
1.85 |
0.92 |
1 |
1 |
1 |
3 |
3 |
▇▁▂▁▆ |
| IDE_EDA_ANO |
0 |
1 |
29.59 |
18.53 |
0 |
15 |
27 |
42 |
105 |
▇▇▃▁▁ |
| IDE_SEX |
0 |
1 |
1.53 |
0.50 |
1 |
1 |
2 |
2 |
2 |
▇▁▁▁▇ |
Another way to read the dataset
To use the whole dataset, without filters, with the other densnv
functions (plt_pyramid(), mp_animated_mpo(),
rt_dengue()…):
x <- data.table::fread("DENGUE2_.txt", quote = "", fill = TRUE)
The arguments quote = "" and fill = TRUE
avoid errors with the quotes and incomplete rows of the SINAVE
files.