Learn R Programming

DescTools (version 0.99.43)

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)

Arguments

x

vector of integers

Value

a logic vector

See Also

IsWhole

Examples

Run this code
# NOT RUN {
IsOdd(1:10)
# }

Run the code above in your browser using DataLab