title: rgamma function in R: scale as a vector
body: <p>I'm trying to draw samples from Gamma distribution but I'm considering the 'scale' argument of <code>rgamma</code> as a vector because each sample unit has different scale parameters. I'd like to know what is the rule of this function to choose the values of the argument. For example, if I run this:</p>
  
  <pre><code>rgamma(10,shape=1,scale=1:10)
  </code></pre>
  
  <p>Is it generating <code>rgamma(1,shape=1, scale=10)</code>,$\ldots$,<code>rgamma(1,shape=1, scale=10)</code>? Besides that, what if I run this:</p>
  
  <pre><code>rgamma(1,shape=1,scale=1:10)
  rgamma(2,shape=1,scale=1:10)
  rgamma(11,shape=1,scale=1:3)
  </code></pre>
  
  <p>Which scale parameter is it choosing for each draw?
  Could someone help me?
  Thanks</p>