Learn R Programming

schoolmath (version 0.4.2)

is.odd: checks if a number or vector is odd

Description

checks if a number or vector is odd

Usage

is.odd(x)

Value

true or false

Arguments

x

the number or vector to check #'

Examples

Run this code
is.odd(45)
is.odd(46)
x <- c(1,2,3,4,5, 6, 7)
is.odd(x)

Run the code above in your browser using DataLab