Description Usage Arguments Details Value See Also Examples
Check if all elements of one vector are equal, larger or smaller than those of another vector, allowing for errors in floating-point arithmetic.
1 2 3 4 5 6 7 | verify(a, b)
a %==% b
a %>=% b
a %<=% b
|
a |
the first vector to be compared |
b |
the second vector to be compared |
%==%
checks for (approximate) equality,
%>=%
tests if a
is greater than or equal to b
and
%<=%
tests the reverse.
A %<%
or %>%
operator would be redundant
(and conflict with magrittr
).
Be aware that some binary operators, such as `/`
take precedence,
so make sure to wrap a
and b
in brackets where appropriate.
Use verify(a, b)
for a conventional prefix operator.
TRUE
or FALSE
or NA
all.equal
Comparison
identical
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.