setup_DTAIngest: Set up a DTAIngestConfig
Description
Creates the settings ingest() uses to read a Stata file. Stata files store
their column types, and the format has no settings of its own.
Usage
setup_DTAIngest(
columns = NULL,
character2factor = TRUE,
clean_colnames = TRUE,
remove_duplicates = FALSE
)
Value
DTAIngestConfig object.
Arguments
- columns
Optional Named vector: Declared column types, keyed by column
name, in the profile/r/v1 vocabulary -- c(Age = "integer"). A column named
here is converted to the declared type after reading, replacing the type the
reader assigned.
- character2factor
Logical: If TRUE, read character columns as factors.
- clean_colnames
Logical: If TRUE, normalize column names.
- remove_duplicates
Logical: If TRUE, drop rows repeating an earlier row.