rray_min()
computes the minimum along a given axis or axes. The
dimensionality of x
is retained in the result.
rray_min(x, axes = NULL)
x | A vector, matrix, or array to reduce. |
---|---|
axes | An integer vector specifying the axes to reduce over. |
The result of the reduction with the same shape as x
, except
along axes
, which have been reduced to size 1.
#> <rray<int>[,1][1]> #> [,1] #> [1,] 1rray_min(x, 1)#> <rray<int>[,2][1]> #> [,1] [,2] #> [1,] 1 6rray_min(x, 2)#> <rray<int>[,1][5]> #> [,1] #> [1,] 1 #> [2,] 2 #> [3,] 3 #> [4,] 4 #> [5,] 5