R/odd.R

Defines functions odd

Documented in odd

odd <-
function(val) {
########################################################################################
##DESCRIPTION
##Returns true if value is odd; false if true

##REQUIRED ARGUMENTS
##val						Value to check
		
##Returns true if val is odd
	if (((as.integer(val/2))*2)!=val) return(TRUE)	
	return (FALSE)
}

Try the yhat package in your browser

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

yhat documentation built on Oct. 11, 2023, 1:08 a.m.