Skip to contents

Checks whether the submitted value is an integer

Usage

is_whole(x)

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.

Author

James Balamuta

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