Learn R Programming

HDiR (version 1.1.3)

is.wholenumber: 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)

Value

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

Arguments

x

Numeric value to check if it is integer.

tol

Tolerance parameter.

Author

Paula Saavedra-Nieves and Rosa M. Crujeiras.