[R] breaking up n object into random groups

statfan irene_vrbik at hotmail.com
Fri Dec 2 16:09:21 CET 2011


say n = 100
I want to partition this into 4 random groups wheren n1 + n2 + n3 + n4 = n
and ni is the number of elements in group i.

Thank you for you help

--
View this message in context: http://r.789695.n4.nabble.com/breaking-up-n-object-into-random-groups-tp4147476p4147476.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list