title: Is it possible to use the value of a vector as the name of another vector?
body: <p>suppose I have a vector:</p>
  <pre><code>outYr
  </code></pre>
  <p>in a loop with the value of outYr changing every time it loops:</p>
  <pre><code>require(Metrics)
      itrcnt &lt;- 10
       count  &lt;- 0
      x &lt;- c(1:99)
      y &lt;- (2:100)
      for( i in 1:itrcnt)
       {
          outYr = 1998 + count
          print(paste(outYr,'has been excluded'))
          RMSE(outYr value) &lt;- rmse(x,y)
          count &lt;-count + 1
       }
  </code></pre>
  <p>I wish to use the value of outYr at the end of the loop as a name for another vector, for example:</p>
  <pre><code>RMSE(outYr value) &lt;- rmse(x,y)
  </code></pre>
  <p>would end up looking like</p>
  <pre><code>RMSE1998 &lt;- rmse (x,y)
  </code></pre>
  <p>Is there a way to do this?</p>
  <p>Edit1: I have been pointed toward using <code>paste()</code> and will update if I can figure it out.</p>