Learn R Programming

vvauditor (version 0.7.0)

assert_field_consistency: Check if the fieldnames of the dataset are the same

Description

Assert Field Consistency Between Data and Metadata

Usage

assert_field_consistency(new_data, field_info)

Value

No return value. The function issues warnings if there are inconsistencies in field names.

Arguments

new_data

A data frame. The new dataset whose field names need to be checked.

field_info

A data frame. Metadata containing a column named raw_field_name that lists the expected field names.

Details

This function checks for consistency between the field names in new data and the field names specified in a metadata reference. It warns if there are missing fields in the new data or if new unexpected fields appear in the data that are not defined in the metadata.