Skip to content
Prev 8835 / 63424 Next

minor error in documentation of pmax in base (PR#2513)

If I'm not mistaken, matrices and arrays are just vectors with dim
attribute.  so I'm not surprised that pmax and pmin work as they do.  You
get the same answer by the following:

array(pmax(1:24, 24:1), c(2, 3, 4))
array(pmin(1:24, 24:1), c(2, 3, 4))


Cheers,
Andy
------------------------------------------------------------------------------