Description Usage Arguments Details Value See Also Examples
Tests if x is a whole number, up to the tolerance
specified by tol. Taken from an example on the help page
for is.integer
.
1 | is.wholenumber(x, tol = .Machine$double.eps^0.5)
|
x |
A numeric vector of length 1, which the function check if it is whole |
tol |
A numeric vector of length 1 specifying the tolerance allowed |
Note that is.integer(x) does not test if x contains integer numbers!
A logical vector of length 1, taking the value TRUE is x is a whole number and false otherwise
1 2 | is.wholenumber(2)
is.wholenumber(2.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.