title: Extracting positive elements from a matrix in R
body: <p>I have got this 6x6 matrix,</p>
  
  <pre><code>1    1    2    1    2    2
  1    3    1    1    2    1
  0    5    1    1    0    3
  0    5    0    2    1    3
  4    1    3    3    2    3
  2    3    3    0    2    3
  </code></pre>
  
  <p>and I need to find a way to select all values >0 such that i can create a vector of all the elements bigger than 0. Is there an easy way to do this?</p>