Re: [R] randomizing groups

2009-10-02 Thread Jason Priem
Duh. I just figured out that though I was getting a warning, it was still doing the split anyway. Sorry for the dumb question. -jason Jason Priem wrote: I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split(sam

Re: [R] randomizing groups

2009-10-02 Thread David Winsemius
On Oct 2, 2009, at 4:36 PM, Jason Priem wrote: I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split(sample(1:96, 96), 1:16) almost does it, but it only works where the division is even. Any ideas? Thanks!

[R] randomizing groups

2009-10-02 Thread Jason Priem
I have a list of participants in a study, identified by number. I want to randomly sort them into an arbitrary number of groups. split(sample(1:96, 96), 1:16) almost does it, but it only works where the division is even. Any ideas? Thanks! Jason Priem, Doctoral Student, School of Information