| bc.rel | R Documentation |
The bc.rel() method
performs broadcasted general relational operations on 2 arrays.
bc.rel(x, y, op, ...)
## S4 method for signature 'ANY'
bc.rel(x, y, op)
x, y |
conformable vectors/arrays of any atomic type. |
op |
a single string, giving the relational operator. |
... |
further arguments passed to or from methods. |
A logical array as a result of the broadcasted general relational operation.
broadcast_operators
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, ">=")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.