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