Learn R Programming

DCC (version 1.2.1)

dcc_l0_diagnose: Level-0 structural diagnostics

Description

Runs Eurostat-style level-0 (structural) validation on a freshly read table: dimensions, per-column type and missingness profile, duplicate or empty column names, all-missing columns and rows, and encoding confidence. Findings use the same shape as later detection stages so the read report feeds the same audit pipeline.

Usage

dcc_l0_diagnose(data, meta = list())

Value

A dcc_read_report object: a list with n_rows, n_cols, columns (per-column profile), and findings

(L0 findings table with columns check_id, severity, variable, evidence).

Arguments

data

A data.frame or data.table.

meta

Optional metadata list from dcc_read (used for encoding-confidence findings).

Examples

Run this code
rep <- dcc_l0_diagnose(data.frame(a = c(1, NA), b = c(NA, NA)))
rep$findings

Run the code above in your browser using DataLab