rray-equal: Equality

rray-equalR Documentation

Equality

Description

  • rray_equal() tests whether x is equal to y.

  • rray_not_equal() tests whether x is not equal to y.

Usage

rray_equal(x, y)

rray_not_equal(x, y)

Arguments

x

An array.

y

An array.

Details

The arrays are broadcast to common dimensions before they are compared.

Value

A logical array with the common dimensions of x and y, and no names.

Examples

x <- array(1:2, c(2L, 1L))

rray_equal(x, 1L)
rray_not_equal(x, array(c(1L, 3L), c(1L, 2L)))

rray documentation built on Nov. 17, 2026, 5:07 p.m.