View source: R/health-services.R
| sinan | R Documentation |
Supports the disease-specific TABNET datasets listed by 'datasus_catalogo("sinan")'. Because each disease has its own form, inspect dimensions, periods and filters with 'datasus_opcoes("sinan", agravo)'. Febre amarela is not included because its official link points to a separate open-data platform rather than a TABNET form.
sinan(
agravo = "dengue",
uf = NULL,
linha = NULL,
coluna = NULL,
conteudo = 1,
periodo = "last",
filtros = list()
)
agravo |
Notifiable disease or condition listed by 'datasus_catalogo("sinan")'. |
uf |
Two-letter state abbreviation. 'NULL' uses the Brazil form. |
linha |
Row dimension. ‘NULL' selects the form’s first dimension. |
coluna |
Column dimension. 'NULL' selects '"Não ativa"'. |
conteudo |
Measure label, raw TABNET value, or one-based index. |
periodo |
'"last"' for the latest available period, an exact period label or raw value, a four-digit year, or a vector of these values. |
filtros |
Named list of filters. Names and choices are available from [datasus_opcoes()]. |
A data frame containing the TABNET result.
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
sinan("dengue", uf = "MS")
sinan(
"violencia_interpessoal_autoprovocada",
uf = "MS",
periodo = 2024
)
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.