rray-compare: Compare arrays

rray-compareR Documentation

Compare arrays

Description

  • rray_greater_than() tests whether x is greater than y.

  • rray_greater_than_or_equal() tests whether x is greater than or equal to y.

  • rray_less_than() tests whether x is less than y.

  • rray_less_than_or_equal() tests whether x is less than or equal to y.

Usage

rray_greater_than(x, y)

rray_greater_than_or_equal(x, y)

rray_less_than(x, y)

rray_less_than_or_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:6, c(3L, 2L))

rray_greater_than(x, 3L)
rray_less_than_or_equal(x, array(c(2L, 5L), c(1L, 2L)))

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