| is.nonpos {hypergeo} | R Documentation |
Various utilities needing nonce functions
is.near_integer(i, tol=getOption("tolerance"))
is.nonpos(i)
is.zero(i)
isgood(x, tol)
i |
Numerical vector of suspected integers |
tol |
Tolerance |
x |
Argument to isgood() |
is.near_integer(i) returns TRUE if
i is “near” [that is, within tol] an integer;
if the option is unset then 1e-11 is used.
is.nonpos() returns TRUE if i is
near a nonpositive integer
is.zero() returns TRUE if i is,
er, near zero
isgood() checks for all elements of x
having absolute values less than tol
Function isgood() uses zero as the default tolerance (argument
tol passed in from hypergeo());
compare the different meaning of tol used in
is.near_integer()
Robin K. S. Hankin
is.zero(4)