Check if a vector is binary
return TRUE if the input is logical or if it contains only 0's and 1's
is_binary(col)
col
logical
Useful links