fetch_cadger: Download the current CADGER table

View source: R/fetch_cadger.R

fetch_cadgerR Documentation

Download the current CADGER table

Description

Downloads and reads the current CNES establishment-name table distributed by DataSUS. process_cnes() can use this table to add establishment names.

Usage

fetch_cadger(timeout = 240)

Arguments

timeout

A positive numeric scalar. Download and connection timeout, in seconds.

Value

A data frame with character columns CNES (establishment code) and FANTASIA (trade name).

Network access

This function downloads the current TAB_CNES.zip archive from DataSUS. Transfer progress is displayed by default. The temporary archive and extracted files are removed before the function returns or aborts.

References

Saldanha, R. F. (2026). CNES – Cadastro Nacional de Estabelecimentos de Saúde.

See Also

process_cnes(), fetch_datasus()


microdatasus documentation built on July 29, 2026, 5:08 p.m.