Checks if the elements of an integer vector x are even or odd.

IsOdd(x)

Arguments

x

vector of integers

Value

a logic vector

Author

Andri Signorell <[email protected]>

See also

Examples

IsOdd(1:10)
#>  [1]  TRUE FALSE  TRUE FALSE  TRUE FALSE  TRUE FALSE  TRUE FALSE