Learn R Programming

schoolmath (version 0.4)

is.odd: check wether numbers of a vector are odd

Description

This function checks wether the numbers of a vector are odd. It returns TRUE/FALSE

Usage

is.odd(x)

Arguments

x

A number or vector to be checked

See Also

is.even

Examples

Run this code
# NOT RUN {
is.odd(2)  # this will return FALSE
is.odd(3)  # this will return TRUE

x <- c(1,2,3,4,5, 6, 7)
is.odd(x)

# }

Run the code above in your browser using DataLab