is.wholenumber | R Documentation |
Checks whether a numeric value is integral, up to machine or other specified prescision.
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x |
numeric vector to be tested. |
tol |
The desired precision. |
A logical vector of the same length as x
, containing the
results of the test.
Robin Evans
x = c(0.5, 1, 2L, 1e-20) is.wholenumber(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.