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.
assert_range_validation(data, metadata)
No return value. The function issues warnings if any values fall outside the expected range.
A data frame. The dataset containing the fields to validate.
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
.