assert_expected_values: Check that values for specified column belong in a set of...

View source: R/validation_asserts.R

assert_expected_valuesR Documentation

Check that values for specified column belong in a set of expected values

Description

Optionally check that the column contains all expected values.

Usage

assert_expected_values(data, column_name, expected_values, all_values = FALSE)

Arguments

data

The data to check

column_name

The column name to check

expected_values

The set of expected values

all_values

If TRUE check that the column contains all expected values

Value

TRUE is valid otherwise throws an error


mrc-ide/hintr documentation built on April 25, 2024, 11:58 p.m.