is.wholenumber: Tests for whole numbers.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Tests if x is a whole number, up to the tolerance specified by tol. Taken from an example on the help page for is.integer.

Usage

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

Arguments

x

A numeric vector of length 1, which the function check if it is whole

tol

A numeric vector of length 1 specifying the tolerance allowed

Details

Note that is.integer(x) does not test if x contains integer numbers!

Value

A logical vector of length 1, taking the value TRUE is x is a whole number and false otherwise

See Also

is.integer

Examples

1
2

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.