rray_max() computes the maximum along a given axis or axes. The
dimensionality of x is retained in the result.
Usage
rray_max(x, axes = NULL)
Arguments
x
A vector, matrix, or array to reduce.
axes
An integer vector specifying the axes to reduce over. 1 reduces
the number of rows to 1, performing the reduction along the way. 2 does the
same, but with the columns, and so on for higher dimensions. The default
reduces along all axes.
Details
Currently, objects are coerced to rrays before the reduction is applied.