title: create data.table with column name from string variable
body: <p>i want to create a data.table and I want to use dynamic column names, by the way this is not about adding columns to an existing data.table.</p>
  
  <p>Here is an example</p>
  
  <pre><code>outer.name &lt;- "outer.column"
  outer.members &lt;- c("I", "II")
  outer.members.cnt &lt;- length(outer.members)
  dt.outerinner &lt;- data.table(outer = outer.members)
  setnames(dt.outerinner, outer.name)
  </code></pre>
  
  <p>Now I want to know, if it's possible to pass the variable "outer.name" directly to <code>data.table(... = outer.members)</code> and omit <code>setnames(...)</code>?</p>
  
  <p>Any hint is appreciated</p>
  
  <p>Tom</p>