Re: [R] Conditional randomization of groups

2009-08-07 Thread Meyners, Michael, LAUSANNE, AppliedMathematics
un...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of yabado Sent: Donnerstag, 6. August 2009 23:29 To: r-help@r-project.org Subject: [R] Conditional randomization of groups Hi I have a data set which is like this: Data ID Type 1 A 2 B 3 A 4 A 5 A

[R] Conditional randomization of groups

2009-08-06 Thread yabado
Hi I have a data set which is like this: Data ID Type 1 A 2 B 3 A 4 A 5 A 6 B 7 B 8 A 9 B 10 B As you can see, there are 5 A and 5 B. Now, I want to a randomization of the data set which will assign 5 ID to a new group called "Set1"