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/mathstatr documentation built on May 27, 2020, 7:41 a.m.