Misc/useful functions to easily determine what is contained in a vector.
is.constant(x) is.binary(x)
x
object to be tested
a logical value