Learn R Programming

ribiosUtils (version 1.7.7)

isOdd: Whether an integer is odd (or even)

Description

Whether an integer is odd (or even)

Usage

isOdd(x)

isEven(x)

Value

Logical, whether the input number is odd or even.

isOdd and isEven returns whether an integer is odd or even, respectively.

Arguments

x

An integer.

Examples

Run this code
isOdd(3)
isEven(4)

Run the code above in your browser using DataLab