title: How can I make vertical output instead of horizontal output?
body: <p>I am trying to make the horizontal output from a particular function into a vertical output and I am trying to figure out with the "cat" function but could not find the way to do so. The function that I am concerned is the following:</p>
  
  <pre><code> context &lt;- function (a,b,c)
   {
   U=matrix(0, nrow = c, ncol = c)
   t = 0.4
   m = 0.2
   for (i in 1:c)
   { 
   U[i] = t*a + b/i - 0.224
   }
   cat(U)
   }
   context(2,3,7)
  </code></pre>
  
  <p>The output that I get is like:</p>
  
  <pre><code> 3.576 2.076 1.576 1.326 1.176 1.076 1.004571 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  </code></pre>
  
  <p>However, I do not know I to make this output in the vertical way by manipulating the function itself.
  I would greatly appreciate if I could get help on this.</p>
  
  <p>Thank you very much in advance!</p>