title: R dplyr rowwise mean or min and other methods?
body: <p>How can I get with dplyr the minimum (or mean) value of each row on a data.frame?
  I mean the same result as</p>
  
  <pre><code>apply(mydataframe, 1, mean) 
  apply(mydataframe, 1, min)
  </code></pre>
  
  <p>I've tried </p>
  
  <pre><code>mydataframe %&gt;% rowwise() %&gt;% mean
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mydataframe %&gt;% rowwise() %&gt;% summarise(mean)
  </code></pre>
  
  <p>or other combinations but I always get errors, I don't know the proper way.</p>
  
  <p>I know that I could also use rowMeans, but there is no simple "rowMin" equivalent.
  There also exist a matrixStats package but most functions don't accept data.frames, only matrixes.</p>
  
  <p>If I want to calculate the min rowwise I could use<br>
  do.call(pmin, mydataframe)
  Is there anything simple like this for the rowwise mean?</p>
  
  <pre><code>do.call(mean, mydataframe) 
  </code></pre>
  
  <p>doesn't work, I guess I need a pmean function or something more complex.</p>
  
  <p>Thanks</p>
  
  <p>In order to compare the results we could all work on the same example:</p>
  
  <pre><code>set.seed(124)
  df &lt;- data.frame(A=rnorm(10), B=rnorm(10), C=rnorm(10))
  </code></pre>