Draw from a Dirichlet distribution given a vector of shape parameters. The number of observations is inferred from the length of the shape vector.
Usage
rdirichlet(shape = rep(1, 3))
See also
rgamma()
for additional details.
Other distributions:
rbetabinom()