Learn R Programming

gtools (version 3.9.5)

oddeven: Detect odd/even integers

Description

detect odd/even integers

Usage

odd(x)

even(x)

Value

Vector of TRUE/FALSE values.

Arguments

x

vector of integers

Author

Gregory R. Warnes greg@warnes.net

See Also

Examples

Run this code


odd(4)
even(4)

odd(1:10)
even(1:10)

Run the code above in your browser using DataLab