This function checks if a variable is integer.
util_is_integer(x, tol = .Machine$double.eps^0.5)the object to test
precision of the detection. Values deviating more than tol from
their closest integer value will not be deemed integer.
TRUE or FALSE
is.integer
Copied from the documentation of is.integer
is.integer detects, if the storage mode of an R-object is
integer. Usually, users want to know, if the values are integer. As suggested
by is.integer's documentation, is.wholenumber does so.