Learn R Programming

ChemoSpec (version 3.0-1)

isWholeNo: Determine if a Number is a Whole Number

Description

This function determines if a given number is a whole number within a given tolerance. Taken from the help page of is.integer.

Usage

isWholeNo(x, tol = .Machine$double.eps^0.5)

Arguments

x
A number to be tested.
tol
Tolerance for the test.

Value

  • A logical, indicating the outcome of the test.

References

https://github.com/bryanhanson/ChemoSpec

See Also

is.integer