Test for integer/whole number vector

is.wholenumber(x, tol = .Machine$double.eps^0.5)

Arguments

x

numeric vector to be tested

tol

numeric; precision level