is.wholenumber: Check Integer Values

View source: R/misc.R

is.wholenumberR Documentation

Check Integer Values

Description

This function is taken from the examples of the 'integer' function from the 'base' package.

Usage

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

Arguments

x

A 'numeric' value which needs to be checked to understand if it is an 'integer'.

Value

A 'boolean' value that specifies whether the supplied value is an 'integer' or not.

Author(s)

'base' R package

Examples

is.wholenumber(4.2)
is.wholenumber(6)
is.wholenumber(seq(1, 5, by = 0.5))

schoi355/gmwm documentation built on April 11, 2022, 1:21 a.m.