is_odd: Checking if number is odd

Description Usage Arguments Value Examples

View source: R/odd_and_pair.R

Description

Evaluates the oddness of a number.

Usage

1
is_odd(x)

Arguments

x

vector of integers or a single integer.

Value

Logical, true if number is odd.

Examples

1
is_odd(rbinom(1, size = 2, prob = .5))

pedrocava/mathr documentation built on May 29, 2020, 8:32 p.m.