title: Use rep() and seq() to create a vector
body: <p>I am new to <code>R</code>. In <code>JAVA</code> I would introduce a control variable to create a sequence such as</p>
  <pre><code>1 2 3 4 5 2 3 4 5 6 3 4 5 6 7 4 5 6 7 8 5 6 7 8 9
  </code></pre>
  <p>I was thinking on doing something like</p>
  <pre><code>seq(from=c(1:5),to=c(5,10),by=1)
  </code></pre>
  <p>However that does not work...</p>
  <p>Can that be solved purely with <code>seq</code> and <code>rep</code>?</p>