Description Usage Arguments Value Note
Check whether all elements of a numeric vector are identical (within machine precision)
1 | .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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.