Density, distribution function, quantile function and random
generation for the Gamma distribution with parameters shape and
scale.
Value
dgamma gives the density,
pgamma is the cumulative distribution function, and
qgamma is the quantile function of the Gamma distribution.
rgamma generates random deviates.
Invalid arguments will result in return value NaN, with a warning.
The length of the result is determined by n for
rgamma, and is the maximum of the lengths of the
numerical arguments for the other functions.
The numerical arguments other than n are recycled to the
length of the result. Only the first elements of the logical
arguments are used.