I just realized I read through your email too quickly and my script does not actually address the constraint on each permutation, sorry about that.
You should be able to use the permutations function to generate the vector permutations however. Jason ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.