powered by
Checks whether the submitted value is an integer
integer
is_whole(x)
A numeric value to check to see if it is an integer.
numeric
A boolean value indicating whether the value is an integer or not.
boolean
# NOT RUN { is_whole(2.3) is_whole(4) is_whole(c(1,2,3)) is_whole(c(.4,.5,.6)) is_whole(c(7,.8,9)) # }
Run the code above in your browser using DataLab