powered by
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x
is.wholenumber
is.integer
is.wholenumber( seq(1, 5, by = 0.5) ) #--> TRUE FALSE TRUE ...
Run the code above in your browser using DataLab