Flexible data import function supporting multiple formats with automatic format detection and preprocessing for leakage analysis.
leakr_import(
source,
format = "auto",
preprocessing = list(),
encoding = "UTF-8",
sheet = NULL,
verbose = TRUE,
...
)Standardised data.frame suitable for leakage analysis
A standardized data.frame suitable for leakage analysis.
Path to data file, data.frame, or other supported object.
Data format: "auto", "csv", "excel", "rds", "json", "parquet", "tsv". If "auto", the format will be detected from the file extension.
List of preprocessing options to apply after import.
Character encoding for reading files. Default is "UTF-8".
Sheet name or index to read (for Excel files). Default is NULL.
Logical indicating whether to print progress messages. Default TRUE.
Additional arguments passed to specific import functions.