assert_field_distinctness: Assert Field Uniqueness Consistency Between Data and Metadata

View source: R/assert_field_distinctness.R

assert_field_distinctnessR Documentation

Assert Field Uniqueness Consistency Between Data and Metadata

Description

This function checks whether the uniqueness of columns in a new dataset matches the expected uniqueness defined in a metadata reference. It warns if any columns do not conform to the expected uniqueness.

Usage

assert_field_distinctness(new_data, metadata)

Arguments

new_data

A data frame. The dataset whose column uniqueness needs to be verified.

metadata

A data frame. Metadata containing a column named is_unique_column, indicating whether each field is expected to be unique.

Value

No return value. The function issues warnings if any columns deviate from their expected uniqueness.


vvauditor documentation built on Jan. 19, 2026, 5:08 p.m.