Skip to contents

This function checks if a number is odd.

Usage

isOdd(x)

Arguments

x

A numeric vector.

Value

A logical vector indicating whether each element is odd.

Examples

# Check if numbers are odd
isOdd(c(1, 2, 3, 4))
#> [1]  TRUE FALSE  TRUE FALSE