Re: [R] all combinations with replacement

From: Kehl Dániel <kehld_at_ktk.pte.hu>
Date: Thu, 21 Apr 2011 12:52:34 -0700

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.

daniel

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Apr 2011 - 19:55:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 20:40:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive