all_equal | R Documentation |
Test a vector (numeric or otherwise) for equivalency across all elements. For numeric values, a tolerance is used to test equivalency. For non-numeric values, unique
is used to determine equivalency.
all_equal(x, tol = .Machine$double.eps ^ 0.5)
x |
vector to test for equivalency |
tol |
numeric, the tolerance to use for equivalency of numeric objects. Ignored if |
logical, either TRUE (all elements are equivalent) or FALSE (some elements are not equivalent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.