Learn R Programming

hypergeo (version 1.2-3)

is.nonpos: Various utilities

Description

Various utilities needing nonce functions

Usage

is.near_integer(i,  tol=getOption("tolerance"))
is.nonpos(i)
is.zero(i)
isgood(x, tol)

Arguments

i
Numerical vector of suspected integers
tol
Tolerance
x
Argument to isgood()

Details

  • Functionis.near_integer(i)returnsTRUEifiisnear[that is, withintol] an integer; if the option is unset then1e-11is used.
  • Functionis.nonpos()returnsTRUEifiis near a nonpositive integer
  • Functionis.zero()returnsTRUEifiis, er, near zero
  • Functionisgood()checks for all elements ofxhaving absolute values less thantol

Examples

Run this code
is.zero(4)

Run the code above in your browser using DataLab