is_wholenumber: Is this a whole number

Description Usage Arguments Value

Description

Function that tets whether input is a whole number and returns T/F. This is used creating the pmf of discrete distributions. This is taken from the example in as.integer documentation included in base.

Usage

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

Arguments

x

A number

tol

the tolerance used to compare x and round(x)

Value

Logical is the number an integer


jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.