dbc2dbf: Decompress a DATASUS DBC file to DBF format

View source: R/dbcturbo.R

dbc2dbfR Documentation

Decompress a DATASUS DBC file to DBF format

Description

Calls the C streaming engine to decompress a .dbc file into a standard .dbf file without loading the full payload into RAM. The compressed payload is processed in 64 KB chunks using the PKWare Implode algorithm (blast.c, Mark Adler).

Usage

dbc2dbf(input_file, output_file)

Arguments

input_file

Character string. Path to the source .dbc file. Must exist and be readable.

output_file

Character string. Path for the output .dbf file. Created or overwritten.

Value

TRUE invisibly on success. On failure, stops with a descriptive error message.

See Also

dbc_to_csv, dbc_inspect

Examples

dbc <- system.file("extdata", "sids.dbc", package = "dbcturbo")
dbf <- tempfile(fileext = ".dbf")
dbc2dbf(dbc, dbf)
file.exists(dbf)
unlink(dbf)


dbcturbo documentation built on Oct. 10, 2026, 5:08 p.m.