R/is.wholenumber.R

Defines functions is.wholenumber

Documented in is.wholenumber

#' is.wholenumber
#'
#' This function checks if the input is an integer
#'
#' @param x Numeric value
#' @param tol Tolerance
is.wholenumber <-  function(x, tol = .Machine$double.eps^0.5)  abs(x - round(x)) < tol
#' @noRd
#' @keywords internal

Try the HDiR package in your browser

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

HDiR documentation built on Nov. 16, 2022, 5:14 p.m.