Description Usage Arguments Value Examples
rray_max_pos()
returns the integer position of the maximum value over an
axis.
1 | rray_max_pos(x, axis = NULL)
|
x |
A vector, matrix, array, or rray. |
axis |
A single integer specifying the axis to compute along. |
An integer object of the same type and shape as x
, except along axis
,
which has been reduced to size 1.
1 2 3 4 5 6 7 8 9 10 | x <- rray(c(1:10, 20:11), dim = c(5, 2, 2))
# Find the max position over all of x
rray_max_pos(x)
# Compute along the rows
rray_max_pos(x, 1)
# Compute along the columns
rray_max_pos(x, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.