is.wholenumber: Function to check if a number is a whole number
Description
Function to check if a number is whole, accounting for a rounding error.
Usage
is.wholenumber(x, tol = .Machine$double.eps^0.5)
Arguments
x
The number to be checked.
tol
Tolerance level.
Value
The default method for 'is.wholenumber' returns 'TRUE' if the number provided is a whole number.
Authors
David Hastie, Department of Epidemiology and Biostatistics, Imperial College London, UK
Silvia Liverani, Department of Epidemiology and Biostatistics, Imperial College London and MRC Biostatistics Unit, Cambridge, UK
Maintainer: Silvia Liverani
References
Liverani, S., Hastie, D. I., Azizi, L., Papathomas, M. and Richardson, S. (2013) PReMiuM: An R package for Profile Regression Mixture Models using Dirichlet Processes. Submitted. Available at http://uk.arxiv.org/abs/1303.2836