checks for whole numbers (integers)
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x
the numeric vector
tol
the tolerance
TRUE or FALSE for each element of x