Detect odd/even integers

Share:

Description

detect odd/even integers

Usage

1
2
odd(x)
even(x)

Arguments

x

vector of integers

Value

Vector of TRUE/FALSE values.

Author(s)

Gregory R. Warnes greg@warnes.net

See Also

round

Examples

1
2
3
4
5
odd(4)
even(4)

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.