assert_single_value {chevron}R Documentation

Check variable only has one unique value.

Description

Check variable only has one unique value.

Usage

assert_single_value(x, label = deparse(substitute(x)))

Arguments

x

value vector.

label

(string) label of input.

Value

invisible NULL or an error message if the criteria are not fulfilled.


[Package chevron version 0.2.6 Index]