Description Usage Arguments Value See Also Examples
View source: R/are-identical.R
Checks if the inputs are identical.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | are_identical(
x,
y,
allow_attributes = FALSE,
.xname = get_name_in_parent(x),
.yname = get_name_in_parent(y)
)
are_identical_legacy(..., l = list())
assert_are_identical(
x,
y,
allow_attributes = FALSE,
severity = getOption("assertive.severity", "stop")
)
assert_all_are_identical_legacy(..., l = list())
assert_any_are_identical_legacy(..., l = list())
|
x |
An R object or expression. |
y |
Another R object or expression. |
allow_attributes |
If |
.xname |
Not intended to be used directly. |
.yname |
Not intended to be used directly. |
... |
Some R expressions, deprecated. |
l |
A list of R expressions, deprecated. |
severity |
How severe should the consequences of the assertion be?
Either |
are_identical
returns TRUE
if x
and y
are identical. The assert_*
function throws an error on failure.
The legacy function are_identical_legacy
allows an arbitrary number
of inputs and returns a symmetric square logical matrix which is TRUE
where pairs of inputs are identical. (The new version of the function
is easier to work with, and it is recommended that you switch your code to
it.)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.