Description Usage Arguments Value Author(s) See Also Examples
Compare two objects for equality, ignoring any attributes if necessary beforehand.
1 2 | compareIgnoreAttrs(model, comparison, transform = character(),
equal = TRUE, ...)
|
model |
The “correct” object. |
comparison |
The object to be compared with the |
transform |
A character vector containing any transformations that have been performed on the objects prior to this comparison. |
equal |
Whether to test for equality if the test for identity fails. |
... |
Arguments passed to |
An object of class "comparison"
.
Use isTRUE()
to determine whether the
comparison has succeeded.
Paul Murrell
compare
and
compareEqual
1 2 3 4 | model <- list(a=1:26, b=letters)
comparison <- model
attr(comparison, "test") <- "test"
compareIgnoreAttrs(model, comparison)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.