powered by
Tests if a number or vector is a whole number
is.wholenumber(x, tol = .Machine$double.eps^0.5)
a number or vector or matrix
double tolerance
a logical of the same format as x
# NOT RUN { is.wholenumber(-5) is.wholenumber(10) is.wholenumber(2.5) is.wholenumber(matrix(1:9, nrow=3)) # }
Run the code above in your browser using DataLab