[R] [Fwd: Re: randomizing groups]

Jason Priem priem at email.unc.edu
Sat Oct 3 01:36:00 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 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