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.
build_unified_comparison(meta, obs_comp, id_vars, df1, df2)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.
Metadata comparison list from build_metadata_comparison().
Observation comparison list from compare_observations()
or compare_observations_by_id().
Character vector of ID variable names (or NULL).
First data frame (base), used to retrieve ID values.
Second data frame (compare).