is.wholenumber: To check whether an argument is an integer

Description Usage Arguments Value References Examples

Description

Used in error checking to ascertain whether a function argument is an integer.

Usage

1
is.wholenumber(x, tol = .Machine$double.eps^0.5)

Arguments

x

Number to be checked.

tol

If x is closer to an integer than this, then it passes.

Value

Vector of logical values if the corresponding input values is an integer or not.

References

is.wholenumber is taken from the is.integer help file.

Examples

1
is.wholenumber( seq(1, 5, by = 0.5) ) #-->  TRUE FALSE TRUE ...


Search within the emon package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.