build_unified_comparison: Build Unified Comparison Table

View source: R/cdisc_validate.R

build_unified_comparisonR Documentation

Build Unified Comparison Table

Description

Internal function that merges attribute differences (type, label, length, format) and value differences into a single data frame, giving a consolidated per-variable view of all differences.

Usage

build_unified_comparison(meta, obs_comp, id_vars, df1, df2)

Arguments

meta

Metadata comparison list from build_metadata_comparison().

obs_comp

Observation comparison list from compare_observations() or compare_observations_by_id().

id_vars

Character vector of ID variable names (or NULL).

df1

First data frame (base), used to retrieve ID values.

df2

Second data frame (compare).

Value

A data frame with columns: variable, diff_type, row_or_key, base_value, compare_value. The diff_type column indicates whether the row is a Type, Label, Length, Format, or Value difference.


clinCompare documentation built on Feb. 19, 2026, 1:07 a.m.