is.even: Is n even?

Description Usage Arguments Details Value Author(s)

Description

Return TRUE if n is an integer evenly divisibly by 2.

Usage

1

Arguments

n

A numeric vector.

Details

Test whether elements of a numeric vector are even. 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.