.zero_range {GenomicTuples} | R Documentation |
Check whether all elements of a numeric vector are identical (within machine precision)
.zero_range(x, tol = .Machine$double.eps^0.5)
x |
a numeric vector. |
TRUE if all elements of the vector are identical (within machine precision). FALSE in all other cases, including if the vector contains any NAs.
This function is based on Hadley and John's answer to
http://stackoverflow.com/q/4752275. No check is made that x
is a
numeric vector.