Description Usage Arguments Value Examples
View source: R/aux-functions.R
Borrowed from the example in integer
.
1 | is.wholenumber(x, tol = .Machine$double.eps^0.5)
|
x |
a vector to be checked for integers |
tol |
an optional parameter specifying to which precision the check is to be performed. |
Returns a vector of logicals with the same length as x
; each
element i
is TRUE
iff x[i]
is an integer.
1 2 3 4 5 6 | ## Not run:
is.wholenumber(1) # is TRUE
(x <- seq(1, 5, by = 0.5) )
is.wholenumber( x ) #--> TRUE FALSE TRUE ...
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.