Generate random samples from multinomial distributions with the same number of classes but different event probabilities.
1  rMultinom(p)

p 
matrix with each row specifying the probabilities for different classes of each sample. 
This function vectorizes the generation of random samples from different multinomial distributions by the inversion of CDF method.
Random samples from multinomial distributions.
rmultinom
1 2 3 4 5 6 7 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.