is.wholenumber: Test whether an object is a whole number

is.wholenumberR Documentation

Test whether an object is a whole number

Description

Test whether an object is a whole number.

Usage

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

Arguments

x

object to be tested

tol

tolerance within which a number is said to be whole

Value

Vector of logicals.

Examples

is.wholenumber(seq(-3,3,.5))

dkahle/mpoly documentation built on Nov. 21, 2024, 8:27 a.m.