Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/statistics.r

View File Source Download File No help file available

Function: is.odd

Function Description: is.odd

A trivial function to test whether numbers (scalar or vector) are odd.

Function Arguments:

ArgumentDefault Value
x

Function Source:

is.odd=function(x)
{
answer=rep(FALSE,length(x))
y=which(x%%2!=0)
answer[y]=TRUE
return(answer)
}