Checks whether the submitted value is an integer
Arguments
- x
A numeric
value to check to see if it is an integer
.
Value
A boolean
value indicating whether the value is an integer
or not.
Examples
is_whole(2.3)
#> [1] FALSE
is_whole(4)
#> [1] TRUE
is_whole(c(1,2,3))
#> [1] TRUE
is_whole(c(.4,.5,.6))
#> [1] FALSE
is_whole(c(7,.8,9))
#> [1] FALSE