title: How to initialize empty data frame (lot of columns at the same time) in R
body: <p>I found how to initialize an empty data frame with 3 or 4 dimensions.  It's like</p>
  
  <pre><code>df &lt;- data.frame(Date=as.Date(character()),
               File=character(), 
               User=numeric(), 
               stringsAsFactors=FALSE)
  </code></pre>
  
  <p>However,  What's the most effective way to initialize an empty data.frame with a lot of column names. like</p>
  
  <pre><code>mynames &lt;- paste("hello", c(1:10000))
  </code></pre>
  
  <p>The wrong way I tried is:</p>
  
  <pre><code>df &lt;- data.frame(mynames=numeric())
  </code></pre>
  
  <p>Thanks a lot beforehand</p>