title: Create variables during for loop
body: <p>I want to create n variables from a vector of n length</p>
  
  <p>for example if the vector is this:</p>
  
  <pre><code>v&lt;-c(1:5)
  </code></pre>
  
  <p>The outcome should be:</p>
  
  <pre><code>x1
  x2
  x3
  x4
  x5
  </code></pre>
  
  <p>I was thinking about a for loop</p>
  
  <pre><code>for (i in 1:length(v)){
    x&lt;-i
    names(x)&lt;-paste(names(x),i)
  }
  </code></pre>
  
  <p>but this is not how the names() function works</p>
  
  <p>This is a very simplified example, I know that what I do here is more easy to achieve, but the functions in the for loop are more complex</p>
  
  <p>Thanks!</p>