Learn R Programming

vvauditor (version 0.7.0)

assert_field_distinctness: 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)

Value

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

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.