powered by
Examines a vector that is not coded as a logical to see if it contains only 0s and 1s.
is.binary(x)
a logical value, TRUE if the vector contains only 0s and 1s and FALSE otherwise.
TRUE
FALSE
A vector.
Luke Keele, Penn State University, ljk20@psu.edu
Sam Pimentel, University of California, Berkeley, spi@berkeley.edu