compare: Methods for comparison of 'disord' objects

Compare-methodsR Documentation

Methods for comparison of disord objects

Description

Arithmetic comparison methods (greater than, etc) for disord objects.

Methods

Compare

signature(e1="disord", e2="disord"): Dispatched to disord_compare_disord()

Compare

signature(e1="disord", e2="ANY"): Dispatched to disord_compare_any()

Compare

signature(e1="ANY", e2="disord"): Dispatched to any_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
rdis() > 1000

disordR documentation built on May 29, 2024, 11:06 a.m.