Rdocumentation
powered by
Learn R Programming
evobiR (version 1.1)
Even: Tests whether a number is even
Description
Just a simple function that returns True if a number is even and False otherwise.
Usage
Even(x)
Arguments
x
a numerical vector.
Details
Returns a vector of logical values of the same length as the input vector. If the input value is not a number it will return an error message.
References
http://coleoguy.github.io/
Examples
Run this code
Even(
c
(
1
,
2
,
3
,
4
,
5
,
6
,
2
,
5
))
Run the code above in your browser using
DataLab