[R] all combinations with replacement

Kehl Dániel kehld at ktk.pte.hu
Thu Apr 21 21:52:34 CEST 2011

Thank you.
I only need those where the rowsum = n.
I could choose those with code, but I dont think it is efficient that way.


2011-04-21 12:33 keltezéssel, Dimitris Rizopoulos írta:
> expand.grid(rep(list(0:6), 3)) 

More information about the R-help mailing list