esus_sindrome_gripal: Read e-SUS Notifica mild influenza-like illness records

View source: R/contemporary-data.R

esus_sindrome_gripalR Documentation

Read e-SUS Notifica mild influenza-like illness records

Description

Downloads anonymous mild and moderate influenza-like illness notifications published by annual dataset and state. These records are distinct from hospitalized severe acute respiratory syndrome records returned by [sivep_gripe()].

Usage

esus_sindrome_gripal(
  uf,
  ano = "last",
  formato = "CSV",
  destino = NULL,
  cache = TRUE,
  atualizar = FALSE,
  n_max = Inf,
  colunas = NULL,
  normalizar = FALSE,
  ...
)

Arguments

uf

One Brazilian state abbreviation, IBGE code or state name.

ano

Dataset year from 2020 onwards, or '"last"' for the latest annual dataset currently published.

formato

File format. The annual state resources are published as '"CSV"'.

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.

Value

The parsed OpenDataSUS resource with provenance metadata.

References

OpenDataSUS. Notificações de Síndrome Gripal. https://dadosabertos.saude.gov.br/dataset?query=sindrome+gripal

Examples


old_options <- options(
  datasus.timeout = 5,
  datasus.download_timeout = 15,
  datasus.max_tries = 1
)
try({
casos <- esus_sindrome_gripal(uf = "MS", ano = 2024, n_max = 1000)
})
options(old_options)


datasus documentation built on Oct. 7, 2026, 1:07 a.m.