Skip to contents

Checks if there is a one to one mapping between two lists of variables.

Usage

assert_one_to_one(dataset, vars1, vars2)

Arguments

dataset

Dataset to be checked

The variables specified for vars1 and vars2 are expected.

vars1

First list of variables

vars2

Second list of variables

Value

An error if the condition is not meet. The input otherwise.