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)

Arguments

v

A numeric vector.

tol

What counts as close enough to 0? Defaults to .Machine$double.eps^0.5.

Source

Cribbed from example in integer

Value

A vector of Logicals.

Details

Takes a numeric vector and returns a Logical vector the same length.

is.wholenumber() is deprecated.