R/is_misc.R
is.01.Rd
does this vector only contains 0 and 1
is.01(x)
a vector
a boolean
is.01(c(0,1,0,0,1)) #> [1] TRUE is.01(c(0,1,0,0,5)) #> [1] FALSE