is.wholenumber {HDiR}R Documentation

Checking if a value is integer

Description

This function checks if a value is integer.

Usage

is.wholenumber(x, tol = .Machine$double.eps^0.5)

Arguments

x

Numeric value to check if it is integer.

tol

Tolerance parameter.

Value

Logical value: TRUE if x is integer and FALSE if x is not integer.

Author(s)

Paula Saavedra-Nieves and Rosa M. Crujeiras.


[Package HDiR version 1.1.3 Index]