title: Repeat iteration in a for loop in r
body: <p>I am trying to generate a for loop that will repeat a sequence of the following:</p>
  <pre><code>sample(x  = 1:14, size = 10, replace = TRUE, prob = c(1/4,1/4,1/4,1/4)
  </code></pre>
  <p>I want it to repeat 5000 times. So far, I include the above as the body of the loop and added</p>
  <pre><code>for (i in seq_along[1:5000]){
  </code></pre>
  <p>at the beginning but I am getting an error message saying</p>
  <pre><code>Error in seq_along[1:10000] : object of type 'builtin' is not subsettable
  </code></pre>