Description Usage Arguments Details Value Author(s) See Also Examples
This class is used to represent the result of a comparison between two objects.
It is just a list, with the following components:
Logical value indicating whether the comparison succeeded (the objects were the same).
Character vector of descriptions of any transformations that have been applied to the objects being compared.
The transformed model object.
The transformed comparison object.
The partially transformed model object.
The partially transformed comparison object.
The transformations that have been applied
to the objects being compared, except for any
transformations that were applied during the test for equality
(i.e., by compareEqual()
).
1 2 3 | 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
1 2 | isTRUE(compareIgnoreOrder(1:10, 10:1))
transforms(compareIgnoreOrder(1:10, 10:1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.