is.wholenumber: Check for whole number values

Description Usage Arguments Details Value Examples

View source: R/is.wholenumber.R

Description

Unlike is.integer(), which checks the type of argument is integer, 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

ProjectMOSAIC/mosaic documentation built on Aug. 19, 2018, 9:14 a.m.