title: Replicate vector in R
body: <p>I have a vector say <code>vec = c(1,1)</code> and I want to replicate it (cbind) column wise 10 times so I can get something that looks like <code>matrix(1, 10, 2)</code>. Is there a function that operates on <code>vec</code> that can do this replication? i.e. rep(vec, 10)?</p>
  
  <p>Thanks!</p>