Downloads a Stata .dta file stored in a MinIO bucket and reads it into
memory as a base data.frame. Internally, the function retrieves the
object contents as raw bytes using minio_get_object, writes them
to a temporary file, and then delegates parsing to
read_dta.
Arguments
- bucket
Character. Name of the MinIO bucket.
- object
Character. Object key (path) of the
.dtafile within the bucket.- ...
Additional arguments passed to
haven::read_dta().
Details
Additional arguments are forwarded to haven::read_dta(), allowing
control over encoding, labelled values, user-defined missing values, and
other Stata-specific parsing options.
Regardless of the return type produced by haven::read_dta() (for
example, a tibble), the result is always coerced to a base
data.frame for consistency with other minio_get_* readers.
