title: How to find min and max for each row of a matrix?
body: <p>Suppose that we have the following matrix <code>m</code>:</p>
  <pre><code>[1] &quot;list of respective positions&quot;
               [,1]      [,2]      [,3]      [,4]       [,5]
  x:      2.4131066 3.8504796 3.7434050 -1.923839 2.41310661
  y:      0.0260981 0.7128027 0.7128027  1.396096 0.01565761
  obj-val 0.7937068 0.3105951 0.4038012  1.195259 0.83750443
  </code></pre>
  <p>How can I retrive the min and the max for each row?
  ( I need the couple (min, max) for each row of the matrix <code>m</code>.</p>
  <p>I'm not wanting to use the <code>rowmins()</code> of the package <code>Rfast</code>.</p>