R/oddeven.R

# $Id: oddeven.R 1228 2007-11-30 18:05:43Z warnes $

# detect odd/even integers
odd <- function(x) x %% 2 == 1
even <- function(x) x %% 2 == 0 

Try the gtools package in your browser

Any scripts or data that you put into this service are public.

gtools documentation built on May 2, 2019, 4:52 p.m.