is.wholenumber: Check for whole number values

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Unlike is.integer(), which checks the type of argument is 'integer' vector, this function checks whether the value of the argument is an integer (within a specified tolerance).

Usage

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

Arguments

x

a vector

tol

a numeric tolerance

Details

This function is borrowed from the examples for [is.integer()]

Value

a logical vector indicating whether 'x' has a whole number value

Examples

1
2
3

skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.