isOdd: Are elements of x odd numbers?

View source: R/isOdd.R

isOddR Documentation

Are elements of x odd numbers?

Description

Return TRUE if n is an integer that is not evenly divisible by 2.

Usage

isOdd(n)

Arguments

n

A numeric vector.

Details

Test whether elements of numeric vector are odd. For whole numbers return TRUE or FALSE. For decimals return NA.

Value

A logical vector the same length as n. TRUE if n is an integer and is even, FALSE if n is an integer and not even, NA otherwise.


davebraze/FDButils documentation built on Feb. 24, 2023, 12:14 a.m.