Learn R Programming

sjmisc (version 1.2)

is_odd: Check whether value is odd

Description

Check whether value is odd

Usage

is_odd(x)

Arguments

x
Numeric vector or single numeric value.

Value

  • TRUE for each odd value of x, FALSE for even values.

See Also

is_even

Examples

Run this code
is_odd(4)
is_odd(5)
is_odd(1:4)

Run the code above in your browser using DataLab