Re: [R] efficient conversion of matrix column rows to list elements

2010-11-17 Thread Chris Carleton
Thanks for the suggestion. The solution below is much better than my round-about way. combn(outcomes, 2, list ) I can't do much about the speed of combn() so I wanted to trim the fat wherever else I could. C On 17 November 2010 15:10, Charles C. Berry wrote: > > On Wed, 17 Nov 2010, Chris Carl

Re: [R] efficient conversion of matrix column rows to list elements

2010-11-17 Thread Charles C. Berry
On Wed, 17 Nov 2010, Chris Carleton wrote: Hi List, I'm hoping to get opinions for enhancing the efficiency of the following code designed to take a vector of probabilities (outcomes) and calculate a union of the probability space. As part of the union calculation, combn() must be used, which r

[R] efficient conversion of matrix column rows to list elements

2010-11-17 Thread Chris Carleton
Hi List, I'm hoping to get opinions for enhancing the efficiency of the following code designed to take a vector of probabilities (outcomes) and calculate a union of the probability space. As part of the union calculation, combn() must be used, which returns a matrix, and the parallelized version