setup_DTAIngest: Set up a 'DTAIngestConfig'

View source: R/047_IngestConfig.R

setup_DTAIngestR Documentation

Set up a DTAIngestConfig

Description

Reading a Stata file. Its types are declared in the file.

Usage

setup_DTAIngest(
  columns = NULL,
  character2factor = TRUE,
  clean_colnames = TRUE,
  remove_duplicates = FALSE
)

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 that type after reading, so a known type takes precedence over the reader's inference.

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.

Value

DTAIngestConfig object.

Author(s)

EDG

Examples

setup_DTAIngest()

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.