Learn R Programming

FastUtils (version 0.2.1)

isOdd: Check if a Number is Odd

Description

This function checks if a number is odd.

Usage

isOdd(x)

Value

A logical vector indicating whether each element is odd.

Arguments

x

A numeric vector.

Examples

Run this code
# Check if numbers are odd
isOdd(c(1, 2, 3, 4))

Run the code above in your browser using DataLab