title: Loop through a R matrix row-wise and print elements
body: <p>Got a basic R for-loop matrix question:</p>
  
  <p>My matrix looks something like this:</p>
  
  <pre><code>2    4    3
  1    5    7
  </code></pre>
  
  <p>All I want is to print these elements row wise and not column wise. The answer should be like <code>2 4 3 1 5 7</code>. All I try I get the result column wise i.e `2 1 4 5 3 7. Since m just beginning R wondering if it can be done by just for-loop which loops column wise and not row-wise</p>