| sinan_dengue | R Documentation |
Downloads the annual OpenDataSUS resources. This complements the aggregated legacy TABNET interface available from 'sinan("dengue")'.
sinan_dengue(
ano = "last",
formato = "CSV",
destino = NULL,
cache = TRUE,
atualizar = FALSE,
n_max = Inf,
...
)
ano |
Dataset year or '"last"'. |
formato |
'"CSV"' or '"JSON"'. |
destino |
Optional destination file or existing directory. |
cache |
Whether to reuse the local cache. |
atualizar |
Whether to force a new metadata query and download. |
n_max |
Maximum number of CSV rows to read. |
... |
Additional arguments passed to the underlying reader. |
The parsed OpenDataSUS resource.
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
dengue <- sinan_dengue(ano = 2025, n_max = 1000)
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.