assert_range_validation: Assert Range Validation for Data Fields

View source: R/assert_range_validation.R

assert_range_validationR Documentation

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)

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.

Value

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


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