Learn R Programming

coldrift (version 0.1.1)

detect_column_drift: Detect Column-Level Data Drift

Description

Compares reference and target datasets to identify column-level drift using statistical distance measures.

Usage

detect_column_drift(reference, target, alpha = 0.05)

Value

A data.frame with drift statistics per column

Arguments

reference

A data.frame representing baseline data

target

A data.frame representing new incoming data

alpha

Significance level for drift detection

Examples

Run this code
ref <- data.frame(
  age = c(25, 30, 35, 40),
  city = c("A", "B", "A", "C")
)

new <- data.frame(
  age = c(26, 31, 36, 41),
  city = c("A", "B", "C", "C")
)

detect_column_drift(ref, new)

Run the code above in your browser using DataLab