Unlike is.integer, which checks the type of
argument is integer, this function checks whether
the value of the argument is an integer (within a
specified tolerance).
Usage
is.wholenumber(x, tol = .Machine$double.eps^0.5)
Arguments
x
a vector
tol
a numeric tolerance
Value
a logical vector indicating whether x has a whole
number value
Details
This function is borrowed from the examples for
is.integer