powered by
Checks whether numbers are odd.
is.odd(x)
A logical vector of the same length as `x`.
A numeric vector.
is.odd(45) # will return TRUE is.odd(46) # will return FALSE is.odd(45.123) # will return FALSE x <- c(1, 2, 3, 4, 5, 6, 7, 8, 9.7) is.odd(x)
Run the code above in your browser using DataLab