is.wholenumber: To check whether an argument is an integer

Description Usage Arguments Value References Examples

View source: R/detect.r View source: R/precision.R View source: R/trends.r View source: R/gvfc.r View source: R/baci.r

Description

Used in error checking to ascertain whether a function argument is an integer.

Usage

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

Arguments

x

Number to be checked.

tol

If x is closer to an integer than this, then it passes.

Value

Vector of logical values if the corresponding input values is an integer or not.

References

is.wholenumber is taken from the is.integer help file.

Examples

1
is.wholenumber( seq(1, 5, by = 0.5) ) #-->  TRUE FALSE TRUE ...

emon documentation built on May 30, 2017, 1:42 a.m.