Learn R Programming

chevron (version 0.2.7)

assert_single_value: Check variable only has one unique value.

Description

Check variable only has one unique value.

Usage

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

Value

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

Arguments

x

value vector.

label

(string) label of input.