| is.wholenumber {rccmisc} | R Documentation |
Function borrowed from the examle section for integer.
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x |
a numeric vector |
tol |
How much is |
Logical vector with same length as x.
is.wholenumber(1) # is TRUE (x <- seq(1, 5, by = 0.5) ) is.wholenumber( x ) #--> TRUE FALSE TRUE ...