assert_single_value {chevron} | R Documentation |
Check variable only has one unique value.
assert_single_value(x, label = deparse(substitute(x)))
x |
value vector. |
label |
( |
invisible NULL
or an error message if the criteria are not fulfilled.