DescTools (version 0.99.11)

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