title: vector of variable names in R
body: <p>I'd like to create a function that automatically generates uni and multivariate regression analyses, but I'm not able to figure out how I can specify **variables in vectors...**This seems very easy, but skimming the documentation I havent figured it out so far...</p>
  
  <p>Easy example</p>
  
  <pre><code>a&lt;-rnorm(100)
  b&lt;-rnorm(100)
  k&lt;-c("a","b")
  d&lt;-c(a,b)
  summary(k[1])
  </code></pre>
  
  <p>But k[1]="a" and is a character vector...d is just b appended to a, not the variable names. In effect I'd like k[1] to represent the vector a. </p>
  
  <p>Appreciate any answers...</p>
  
  <p>//M</p>