View source: R/health-services.R
| datasus_opcoes | R Documentation |
Reads the current TABNET form and returns its row, column, measure, period and filter choices. Filter names in the returned 'filtros' list are the names accepted by the query functions.
datasus_opcoes(sistema, conjunto = NULL, uf = NULL, abrangencia = NULL)
sistema |
System name accepted by [datasus_catalogo()]. |
conjunto |
Dataset name listed by [datasus_catalogo()]. When omitted, uses the default dataset for the system. |
uf |
State abbreviation, two-digit IBGE code or state name. When 'NULL', uses the Brazil form. |
abrangencia |
Optional geographic detail for SIM and SINASC: '"municipio"' for the nationwide municipal form or '"uf"' for the region/state form. Other systems retain their existing behavior. |
An object of class 'datasus_opcoes'. Its components are data frames named 'linha', 'coluna', 'conteudo' and 'periodo', plus a named list 'filtros'.
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
op <- datasus_opcoes("sih", uf = "MS")
op$conteudo
op$filtros$carater_atendimento
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.