Description Usage Arguments Value Examples
rray_maximum()
and rray_minimum()
compute the elementwise max / min
between x
and y
.
1 2 3 | rray_maximum(x, y)
rray_minimum(x, y)
|
x, y |
A vector, matrix, array or rray. |
The elementwise max/min of x
and y
, with broadcasting.
1 2 3 4 5 6 7 8 9 | # Elementwise maximum
rray_maximum(c(1, 2, 3), c(3, 2, 1))
# Elementwise minimum
rray_minimum(c(1, 2, 3), c(3, 2, 1))
# With broadcasting
x <- matrix(1:3)
rray_maximum(x, t(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.