Re: [R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread philozine
ot;E" "A" > > [23,] "B" "E" "C" > > [24,] "B" "E" "D" > > [25,] "C" "A" "B" > > [26,] "C" "A" "D" > > [27,] "C" "A" "

[R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread philozine
Dear all: This is one of those "should be easy" problems that I'm having great difficulty solving. I have a vector containing ID codes, and I need to generate a 3-column matrix that contains all possible combinations of three. For example, my ID vector looks like this: A B C D E I need to gene