is.odd: Is n odd?

Description Usage Arguments Details Value Author(s)

Description

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

Usage

1
is.odd(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.

Author(s)

David Braze davebraze@gmail.com


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.