assert_single_value: Check variable only has one unique value.

View source: R/assertions.R

assert_single_valueR 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.


chevron documentation built on June 20, 2025, 5:08 p.m.