Defines functions is.wholenumber

Documented in is.wholenumber

### Test for whole number, with tolerance for representation
### From post by Tony Plate <tplate_at_acm.org>
is.wholenumber <- function(x, tolerance = .Machine$double.eps^0.5){
    if (!is.numeric(x)){
    } else {
        return(isTRUE(all(abs(x - round(x)) < tolerance)))

Try the HyperbolicDist package in your browser

Any scripts or data that you put into this service are public.

HyperbolicDist documentation built on Nov. 26, 2023, 9:07 a.m.