title: R - how can I save the value of "print"?
body: <p>In R , when I use "print", I can see all the values, but how can I save this as a vector?
     For example, in a 'for' loop: 
     <code>for(i in 1:10)</code>, I would like the value of A , when i= 1,2,3,4..... but if I use <code>x=A</code>, it only saves the final value of A which is the value when i = 10. So, how can I save the values in print(A)?
      Additionally, I use more than one 'for' loop e.g.:</p>
  
  <pre><code>for (i in 1:9) {
    for (k in 1:4) {
    }
  }
  </code></pre>
  
  <p>Consequently, x[i]=A..does not work very well here.</p>