powered by
Validates that a vector contains only 1s, 0s, or NAs.
parse_lc_bin(x)
An integer vector (1, 0, or NA).
A vector of potential 1/0 scores.
parse_lc_bin(c(1, 0, "1", "0", 2, "A", NA))
Run the code above in your browser using DataLab