Check if a variable is binary
Examines a vector that is not coded as a logical to see if it contains only 0s and 1s.
a logical value,
TRUE if the vector contains only 0s and 1s and
Luke Keele, Penn State University, email@example.com
Sam Pimentel, University of Pennsylvania, firstname.lastname@example.org
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.