View source: R/contemporary-data.R
| esavi | R Documentation |
Downloads anonymous individual records from the e-SUS Notifica ESAVI module. The source contains notifications since January 2021 and is continuously updated. An event following immunization does not by itself establish a causal association with a vaccine.
esavi(
formato = "CSV",
destino = NULL,
cache = TRUE,
atualizar = FALSE,
n_max = Inf,
colunas = NULL,
normalizar = FALSE,
...
)
formato |
File format, '"CSV"' or '"JSON"'. |
destino |
Optional destination file or existing directory. |
cache |
Whether to reuse the local OpenDataSUS cache. |
atualizar |
Whether to force a fresh metadata query and download. |
n_max |
Maximum number of rows to read. |
colunas |
Optional character vector selecting columns during CSV parsing. |
normalizar |
Whether to apply the curated contemporary schema with [datasus_padronizar()]. |
... |
Additional arguments passed to the underlying reader. |
The parsed OpenDataSUS resource with provenance metadata.
OpenDataSUS. ESAVI - Dados sobre Eventos Supostamente Atribuíveis a Vacinação. https://dadosabertos.saude.gov.br/dataset/esavi
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
eventos <- esavi(n_max = 1000)
datasus_proveniencia(eventos)
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.