R/is.wholenumber.R

Defines functions is.wholenumber

Documented in is.wholenumber

#' Test if a numeric input is an integer
#'@param x numeric value to test
#'@param tol limit defined as a really low number


is.wholenumber <- function(x, tol = .Machine$double.eps^0.5)  {
        abs(x - round(x)) < tol
}
rafaelsommer1/emocempr documentation built on Aug. 31, 2020, 4:38 p.m.