Learn R Programming

vvauditor (version 0.7.0)

assert_range_validation: Assert Range Validation for Data Fields

Description

This function checks whether the values in a dataset fall within the expected minimum and maximum range as specified in the metadata. It warns if any values violate the expected range.

Usage

assert_range_validation(data, metadata)

Value

No return value. The function issues warnings if any values fall outside the expected range.

Arguments

data

A data frame. The dataset containing the fields to validate.

metadata

A data frame. Metadata containing expected minimum and maximum values for each field. It must include the columns raw_field_name, min, max, and preferred_field_name.