Determine whether each element of numerical vector can reasonably be interpreted as a whole number.
isWholeNumber(v, tol = .Machine$double.eps^0.5) is.wholenumber(v, tol)
v | A numeric vector. |
---|---|
tol | What counts as close enough to 0? Defaults to .Machine$double.eps^0.5. |
Cribbed from example in integer
A vector of Logicals.
Takes a numeric vector and returns a Logical vector the same length.
is.wholenumber()
is deprecated.