is.binary returns TRUE if a variable is binary, and FALSE otherwise
is.binary
is.binary(x)
x
a numeric vector