powered by
does this vector only contains 1 and 2
is.12(x)
a boolean
a vector
is.12(c(1,1,2,1,2)) is.12(c(1,1,2,1,5))
Run the code above in your browser using DataLab