title: R: Sample a vector with replacement multiple times
body: <p>I'd like to sample a vector x of length 7 with replacement and sample that vector 10 separate times.  I've tried the something like the following but can't get the resulting 7x10 output I'm looking for.  This produces a 1x7 vector but I can't figure out to get the other 9 vectors</p>
  
  <pre><code>x &lt;- runif(7, 0, 1)
  for(i in 1:10){
      samp &lt;- sample(x, size = length(x), replace = T)
  }
  </code></pre>