View source: R/dbc_functions.R
| read_dbc | R Documentation |
Decompresses a DataSUS DBC file to a temporary DBF file and reads it into
a tibble. Use this function for a DBC file already available locally; use
fetch_datasus() to discover and download files from DataSUS.
read_dbc(file, as_character = TRUE)
file |
A single character string with the path to a readable, non-empty DBC file. |
as_character |
If |
Decompression is performed through the package's bundled DBC implementation.
The intermediate DBF file is created in the R temporary directory and removed
before the function returns or aborts. The implementation was adapted from
the healthbR package.
Invalid input files, decompression failures, and DBF reading failures abort
with errors in the microdatasus_dbc_error family.
A tibble with one column per DBF field. By default, all columns are
character vectors; with as_character = FALSE, DBF-inferred types are
retained.
Saldanha, R. F. (2026). Sistemas de Informação em Saúde no Brasil.
fetch_datasus()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.