Methods for comparison of disord objects
compare.RdArithmetic comparison methods (greater than, etc) for disord
objects.
Methods
- Compare
signature(e1="disord", e2="disord"): Dispatched todisord_compare_disord()- Compare
signature(e1="disord", e2="ANY"): Dispatched todisord_compare_any()- Compare
signature(e1="ANY", e2="disord"): Dispatched toany_compare_disord()
Note
All the comparison methods use drop=TRUE to avoid inconsistent
results when all the values are the same [that is, all TRUE or
all FALSE]. Comparing two disord objects requires their
hash code to agree as per disordR discipline. Comparing a
disord with a numeric returns a disord object. In each
case, the hash code of the original object is preserved in the returned
value.
Examples
rdis() > 4
#> A disord object with hash 0c41586b84234d7b16596951b126d4b3abeedbf7 and elements
#> [1] TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE
#> (in some order)
rdis() > 1000
#> A disord object with hash 609e21851efc771608cc572732246b191c62b8fc and elements
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
#> (in some order)