is.even: Divisibility by 2

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/ssa.R

Description

Determines if an integer is even or not

Usage

1

Arguments

x

integer

Value

comp1

logical. If x is divisible by two, it returns TRUE.

...

Note

~~further notes~~

Author(s)

Patrick Crutcher

See Also

~~objects to See Also as help, ~~~

Examples

1
2
3
4
5
6
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(x) return((as.integer(x) %% 2) == 0)

ssa documentation built on May 2, 2019, 5:54 p.m.

Related to is.even in ssa...