| subsetOrder | R Documentation |
A wrapper for is.subset which returns set inclusions.
subsetOrder(x, y)
x |
A vector. |
y |
A vector of the same type as |
If x is a subset of y, returns -1, for the reverse
returns 1. If sets are equal or incomparable, it returns 0.
A single integer, 0, -1 or 1.
Robin Evans
is.subset, inclusionMax.
subsetOrder(2:4, 1:4) subsetOrder(2:4, 3:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.