View source: R/vital-statistics.R
| sinasc | R Documentation |
Provides a single interface to the Live Birth Information System (SINASC). Current row, column, measure, period and filter choices can be inspected with 'datasus_opcoes("sinasc", ...)'.
sinasc(
conjunto = "nascidos_vivos",
abrangencia = c("municipio", "uf"),
uf = NULL,
linha = NULL,
coluna = NULL,
conteudo = 1,
periodo = "last",
filtros = list()
)
conjunto |
SINASC dataset. Currently '"nascidos_vivos"'. |
abrangencia |
Geographic form: '"municipio"' for municipality-level results or '"uf"' for region/state-level results. |
uf |
Optional state abbreviation, two-digit IBGE code or state name. With 'abrangencia = "municipio"', selects the state-specific municipal form. It must be 'NULL' with 'abrangencia = "uf"'. |
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 year, an exact period label or raw value, a four-digit year, or a vector of these values. |
filtros |
Named list of filters. Use [datasus_opcoes()] to inspect their names and accepted values. |
A data frame containing the TABNET result, with query provenance available through [datasus_proveniencia()].
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
op <- datasus_opcoes(
"sinasc", abrangencia = "municipio", uf = "SP"
)
nascimentos <- sinasc(
uf = "SP",
periodo = 2024,
filtros = list(sexo = "Masculino")
)
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.