sivep_gripe: Read SIVEP-Gripe severe acute respiratory syndrome microdata

View source: R/opendatasus.R

sivep_gripeR Documentation

Read SIVEP-Gripe severe acute respiratory syndrome microdata

Description

Read SIVEP-Gripe severe acute respiratory syndrome microdata

Usage

sivep_gripe(
  ano = "last",
  formato = "CSV",
  destino = NULL,
  cache = TRUE,
  atualizar = FALSE,
  n_max = Inf,
  ...
)

Arguments

ano

Dataset year or '"last"'.

formato

'"CSV"' or '"JSON"'.

destino

Optional destination file or existing directory.

cache

Whether to reuse the local cache.

atualizar

Whether to force a new metadata query and download.

n_max

Maximum number of CSV rows to read.

...

Additional arguments passed to the underlying reader.

Value

The parsed OpenDataSUS resource.

Examples


old_options <- options(
  datasus.timeout = 5,
  datasus.download_timeout = 15,
  datasus.max_tries = 1
)
try({
srag <- sivep_gripe(ano = 2025, n_max = 1000)
})
options(old_options)


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