DescTools (version 0.99.8.1)

IsOdd: Checks if an integer is even or odd

Description

Checks if the integers in a vector are even (FALSE) or odd (TRUE)

Usage

IsOdd(x)

Arguments

x
vector of integers

Value

  • a logic vector

See Also

IsWhole

Examples

Run this code
IsOdd(1:10)

Run the code above in your browser using DataCamp Workspace