is.wholenumber: Can each element of x reasonably be interpreted as a whole...

Description Usage Arguments Details Value Author(s)

Description

Determine whether each element of x reasonably be interpreted as a whole number.

Usage

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

Arguments

v

A numeric vector.

tol

What counts as close enough to 0? Defaults to .Machine$double.eps^0.5.

Details

Takes a numeric vector and returns a Logical vector the same length.

Value

A vector of Logicals.

Author(s)

Cribbed from example in integer


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.