Description Usage Arguments Details Value Examples
Unlike is.integer(), which checks the type of argument is 'integer'
vector, this function checks whether the value of the argument is an integer
(within a specified tolerance).
1 | is.wholenumber(x, tol = .Machine$double.eps^0.5)
|
x |
a vector |
tol |
a numeric tolerance |
This function is borrowed from the examples for [is.integer()]
a logical vector indicating whether 'x' has a whole number value
1 2 3 | is.wholenumber(1)
all(is.wholenumber(rbinom(100,10,.5)))
is.wholenumber((1:10)/2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.