[R] randomizing groups

Jason Priem jason at jasonpriem.com
Sat Oct 3 01:26:38 CEST 2009


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(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 and Library Science
> University of North Carolina-Chapel Hill
>




More information about the R-help mailing list