R: Detect odd/even integers

oddeven {gtools} | R Documentation

## Detect odd/even integers

### Description

detect odd/even integers

### Usage

    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

    odd(4)
    even(4)

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

[Package gtools version 3.9.2.2 Index]