assert_single_value | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.