util_is_integer: Check for integer values

Description Usage Arguments Value See Also

View source: R/util_is_integer.R

Description

This function checks if a variable is integer.

Usage

1
util_is_integer(x, tol = .Machine$double.eps^0.5)

Arguments

x

the object to test

tol

precision of the detection. Values deviating more than tol from their closest integer value will not be deemed integer.

Value

TRUE or FALSE

See Also

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.


dataquieR documentation built on Feb. 26, 2021, 5:08 p.m.