Learn R Programming

ggHoriPlot (version 1.0.1)

is.wholenumber: Check if a variable is a whole number

Description

Check if a variable is a whole number

Usage

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

Value

A logical value indicating whether a number is an integer, given a certain tolerance threshold.

Arguments

x

A number.

tol

Tolerance threshold.