Re: [R] Generating unique permutations of a vector

2008-11-14 Thread Robin Hankin
Annette I understand your problem. I think you may find 'blockparts(rep(5,5),5)' helpful. I'm working on permutations of multisets right now and expect to have functionality in partitions package as soon as I finish the Other Ten Thousand Things On My Things To Do List.arts Perhaps we could ta

[R] Generating unique permutations of a vector

2008-11-14 Thread Annette Heisswolf
Hi all, I try to generate sets of strategies that contain probability distributions for a defined number of elements, e.g. imagine an animal that can produce 5 different types of offspring and I want to figure out which percentage of each type it should produce in order to maximize its fitness. I