Learn R Programming

DescTools (version 0.99.56)

IsOdd: Checks If An Integer Is Even Or Odd

Description

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

Usage

IsOdd(x)

Value

a logic vector

Arguments

x

vector of integers

Author

Andri Signorell <andri@signorell.net>

See Also

IsWhole

Examples

Run this code
IsOdd(1:10)

Run the code above in your browser using DataLab