is.even {schoolmath} | R Documentation |
This function checks wether the numbers of a vector are even. It returns TRUE/FALSE
is.even(x)
x |
A number or vector to be checked |
Joerg Schlarmann
is.even(3) # this will return FALSE is.even(2) # this will return TRUE x <- c(1,2,3,4,5, 6, 7) is.even(x)