
Last chance! 50% off unlimited learning
Sale ends in
rmultinomial(n, p, rows=max(c(length(n), nrow(p))))
rmultz2(n, p, draws=length(n))
rows
rows delivering specified samples
n <- c(100,20,10)
p <- matrix(c(.3,.1,.5,.1,.1,.2,.6,.8,.3),3)
rmultinomial(n,p)
Run the code above in your browser using DataLab