Unlike `rray_equal()`

and `rray_not_equal()`

, these functions perform a
strict comparison of two arrays, and return a single logical value.
Specifically:

Broadcasting is

*not*performed here, as the shape is part of the comparison.The underlying type of the values matter, and

`1`

is treated as different from`1L`

.Otherwise, attributes are not compared, so dimension names are ignored.

rray_all_equal(x, y) rray_any_not_equal(x, y)

x, y | Vectors, matrices, arrays, or rrays. |
---|

# This is definitely true! rray_all_equal(1, 1)#> [1] TRUE# Different types! rray_all_equal(1, 1L)#> [1] FALSE#> [1] FALSE#> [1] FALSE#> [1] TRUE#> [1] TRUE# Dimension names don't matter x <- matrix(1, dimnames = list("foo", "bar")) rray_all_equal(x, matrix(1))#> [1] TRUE