search for: tp1692117p1692128

Displaying 1 result from an estimated 1 matches for "tp1692117p1692128".

Did you mean: tp1692117p1692117
2010 Mar 26
2
More efficient alternative to combn()?
Hi, i am working on a problem where i need to compute the products of all possible combinations of size m of the elements of a vector. I know that this can be achieved using the function combn(), e.g.: > vector <- 1:6 > combn(x = vector, m = 3, FUN = function(y) prod(y)) In my case the vector has 2000 elements and i need to compute the values specified above for m = 32. Using combn() i