title: How to vectorize creating columns in R
body: <p>Is there a way to vectorize the creation of a <code>data.frame</code> without repeatedly writing it as shown below? Basically I want to create huge numbers of columns and I am looking for shorter way. </p>
  
  <pre><code>QQ &lt;- data.frame(rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100),rep(55,100))
  names(QQ) &lt;- sprintf("%s%02d", "S", c(1:16))
  </code></pre>
  
  <p>Rather than writing <code>rep(55,100)</code> many times I want to do it through vectorization (function otherwise).</p>