are_equal | R Documentation |
A wrapper for all.equal
that returns a logical scalar.
are_equal(x, y, check.names = T, check.attributes = T, ...)
x |
(any object) The first object. |
y |
(any object) The second object. |
check.names |
(lgl) Whether to check names (default yes). |
check.attributes |
(lgl) Whether to check attributes (default yes). |
... |
(other named parameters) Further parameters to pass to |
Returns a logical scalar indicating whether the objects are equal.
are_equal(iris[1:4], iris[-5])
a = letters[1:3]
b = letters[1:3]
attr(b, "test") = "value"
are_equal(a, b)
are_equal(a, b, check.attributes = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.