Description Usage Arguments Value Examples
Tests whether all the elements in a numeric vector are equal. A special care is needed with such operations because we might be working with real numbers and this requires stating some threshold for declaring elements to be the same. If any of the elements are NA, the function will not work and the result will be an error. See also http://stackoverflow.com/questions/4752275/test-for-equality-among-all-elements-of-a-single-vector
1 | equal(x, tol = 1e-16)
|
x |
A numeric vector. |
tol |
A scalar, small value, required to test the equality of real numbers. |
A logical value, TRUE, FALSE or NA.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.