| comparison-class {compare} | R Documentation |
This class is used to represent the result of a comparison between two objects.
It is just a list, with the following components:
compareEqual()). isTRUE(x) transforms(comp)
x, comp |
A comparison object. |
Partial values in the result of a comparison are useful for when a
comparison fails, but a subsequent comparison will be attempted, i.e.,
for daisy-chaining the various compareSomething() functions,
i.e., what compare() does.
isTRUE() returns a logical value, based on the comparison
result.
transforms() returns a character vector of transformation
descriptions.
Paul Murrell
compare and
compareEqual
isTRUE(compareIgnoreOrder(1:10, 10:1)) transforms(compareIgnoreOrder(1:10, 10:1))