powered by
Check whether a number is even or odd.
IsEven(x) IsOdd(x)
An integer or vector of integers.
Logical indicating whether the argument is even (or odd).
# NOT RUN { IsEven(2) ## TRUE IsOdd(2) ## FALSE # }
Run the code above in your browser using DataLab