| opendatasus_arquivos | R Documentation |
Some OpenDataSUS resources, notably state-level influenza-like illness datasets, publish several file parts as links inside the resource description instead of the primary URL field. This function expands both representations to one row per downloadable file.
opendatasus_arquivos(
conjunto,
recurso = NULL,
formato = NULL,
cache = TRUE,
atualizar = FALSE
)
conjunto |
Dataset slug returned by [opendatasus_catalogo()]. |
recurso |
Optional exact resource name or identifier. |
formato |
Optional resource format. |
cache |
Whether to cache portal metadata for the duration controlled by option 'datasus.cache_ttl'. |
atualizar |
Whether to ignore cached metadata and query the portal again. |
A data frame with one row per downloadable file and its parent resource identifier, part number and URL.
old_options <- options(
datasus.timeout = 5,
datasus.download_timeout = 15,
datasus.max_tries = 1
)
try({
opendatasus_arquivos(
"notificacoes-de-sindrome-gripal-leve-2024",
recurso = "Dados MS - 20/12",
formato = "CSV"
)
})
options(old_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.