R/is.wholenumber.R

# Function taken from the R base manual (src/library/base/man/integer.Rd)
# Copyright 1995-2010 R Core Team
# Distributed under GPL 2 or later

is.wholenumber <- function (x, tol = .Machine$double.eps^0.5)
    abs(x - round(x)) < tol

Try the biostatUZH package in your browser

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

biostatUZH documentation built on May 2, 2019, 6:06 p.m.