R: Determine if a Number is a Whole Number

isWholeNo {ChemoSpec} | R Documentation

## 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`. An internal function, not generally called by the user.

### 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.

### Author(s)

Bryan A. Hanson, DePauw University. Carved out of `is.integer`.

### References

https://github.com/bryanhanson/ChemoSpec

### See Also

`is.integer`

[Package ChemoSpec version 4.4.97 Index]