Learn R Programming

leakr (version 0.1.0)

leakr_import: Import data from various sources for leakage analysis

Description

Flexible data import function supporting multiple formats with automatic format detection and preprocessing for leakage analysis.

Usage

leakr_import(
  source,
  format = "auto",
  preprocessing = list(),
  encoding = "UTF-8",
  sheet = NULL,
  verbose = TRUE,
  ...
)

Value

Standardised data.frame suitable for leakage analysis

A standardized data.frame suitable for leakage analysis.

Arguments

source

Path to data file, data.frame, or other supported object.

format

Data format: "auto", "csv", "excel", "rds", "json", "parquet", "tsv". If "auto", the format will be detected from the file extension.

preprocessing

List of preprocessing options to apply after import.

encoding

Character encoding for reading files. Default is "UTF-8".

sheet

Sheet name or index to read (for Excel files). Default is NULL.

verbose

Logical indicating whether to print progress messages. Default TRUE.

...

Additional arguments passed to specific import functions.