Quick checks for what a vector contains. is.constant() is TRUE
when x holds at most one unique value (ignoring NA), and
is.binary() is TRUE when it holds at most two.
Quick checks for what a vector contains. is.constant() is TRUE
when x holds at most one unique value (ignoring NA), and
is.binary() is TRUE when it holds at most two.