is.odd: Determine if a number is odd or even.

Description Usage Arguments Value Author(s) Examples

Description

Determine if a number is odd or even.

Usage

1
2
3

Arguments

x

A numeric vector.

Value

A logical vector of the same length as x.

Author(s)

Derek H. Ogle, derek@derekogle.com

Examples

1
2
3
4
5
6
7
8
9
## Individual values
is.odd(1)
is.odd(2)
is.even(3)
is.even(4)

## Vector of values
d <- 1:8
data.frame(d,odd=is.odd(d),even=is.even(d))

FSA documentation built on July 17, 2021, 5:07 p.m.

Related to is.odd in FSA...