title: Create a vector in R with double or triple values
body: <p>I need to have a vector with a fixed number of elements e.g. 20. Usually I would take:</p>
  
  <pre><code>x0 &lt;- 1
  seq(x0, 560, 1)
  </code></pre>
  
  <p>Right now I want to have each number double to triple:</p>
  
  <pre><code>x&lt;-(1,1,2,2,3,3,...) 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>x&lt;-(1,1,1,2,2,2,3,3,3,...) 
  </code></pre>
  
  <p>Looking like this but automatically generation, because I need too many elements.</p>