is_varying: Check if the values in a vector vary
Description
Check if the values in a vector vary
Usage
is_varying(x, msg = "Vector does not vary.", fail = TRUE)
Arguments
msg
character string with the error message to return if
fail = TRUE
.
fail
logical whether to return an error if x
does not vary.