powered by
x
Borrowed from the example in integer.
integer
is.wholenumber(x, tol = .Machine$double.eps^0.5)
Returns a vector of logicals with the same length as x; each element i is TRUE iff x[i] is an integer.
i
TRUE
x[i]
a vector to be checked for integers
an optional parameter specifying to which precision the check is to be performed.
if (FALSE) { is.wholenumber(1) # is TRUE (x <- seq(1, 5, by = 0.5) ) is.wholenumber( x ) #--> TRUE FALSE TRUE ... }
Run the code above in your browser using DataLab