powered by
Check if a vector is binary (not counting NA's)
isBinary(v)
A vector, or column of values
A boolean
http://healthcareai-r.readthedocs.io
healthcareai
# NOT RUN { isBinary(c(1,2,NA)) isBinary(c(1,2,3)) # }
Run the code above in your browser using DataLab