is.wholenumber | R Documentation |
Tests if a number or vector is a whole number
is.wholenumber(x, tol = .Machine$double.eps^0.5)
x |
a number or vector or matrix |
tol |
double tolerance |
a logical of the same format as x
is.wholenumber(-5)
is.wholenumber(10)
is.wholenumber(2.5)
is.wholenumber(matrix(1:9, nrow=3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.