title: Append value to empty vector in R?
body: <p>I'm trying to learn R and I can't figure out how to append to a list.</p>
  
  <p>If this were Python I would . . .</p>
  
  <pre><code>#Python
  vector = []
  values = ['a','b','c','d','e','f','g']
  
  for i in range(0,len(values)):
      vector.append(values[i])
  </code></pre>
  
  <p>How do you do this in R?</p>
  
  <pre><code>#R Programming
  &gt; vector = c()
  &gt; values = c('a','b','c','d','e','f','g')
  &gt; for (i in 1:length(values))
  + #append value[i] to empty vector
  </code></pre>