bc.rel: Broadcasted General Relational Operators

bc.relR Documentation

Broadcasted General Relational Operators

Description

The bc.rel() function performs broadcasted general relational operations on 2 arrays.

Usage

bc.rel(x, y, op, ...)

## S4 method for signature 'ANY'
bc.rel(x, y, op)

Arguments

x, y

conformable arrays of any atomic type.

op

a single string, giving the relational operator.
Supported relational operators: ==, !=, <, >, <=, >=.

...

further arguments passed to or from methods.

Value

A logical array as a result of the broadcasted general relational operation.

See Also

broadcast_operators

Examples


x.dim <- c(4:2)
x.len <- prod(x.dim)
x.data <- sample(c(NA, 1.1:1000.1), x.len, TRUE)
x <- array(x.data, x.dim)
y <- array(1:50, c(4,1,1))


bc.rel(x, y, "==")
bc.rel(x, y, "!=")
bc.rel(x, y, "<")
bc.rel(x, y, ">")
bc.rel(x, y, "<=")
bc.rel(x, y, ">=")

broadcast documentation built on Sept. 15, 2025, 5:08 p.m.

Related to bc.rel in broadcast...