Checks if an object is an integer.
is_integer(x)
x
object to be tested.
TRUE or FALSE depending on whether its argument is an integer or not.