Re: [R] Combine vectors in order to form matrixes with combn

2009-09-21 Thread Bryan Keller
Moreno, I don't understand exactly what it is you are trying to do. Can you explain what you want your matrices to look like? Perhaps give an example. Bryan - Bryan Keller, Doctoral Student/Project Assistant Educational Psychology - Quantitative Methods The University of

Re: [R] Combine vectors in order to form matrixes with combn

2009-09-21 Thread Moreno Mancosu
Moreno, I don't understand exactly what it is you are trying to do. Can you explain what you want your matrices to look like? Perhaps give an example. Bryan Dear Bryan, let's try with an example: i have 8 column vectors v1-matrix(c(2,5,6,8)) v2-matrix(c(3,7,9,11))

Re: [R] Combine vectors in order to form matrixes with combn

2009-09-21 Thread Phil Spector
Moreno - While it's possible to do what you want with 8 individual vectors, the problem is much easier to solve if you combine them into a list: v = list(c(2,5,6,8),c(3,7,9,11),c(13,4,2,7), c(3.4,6,11,21),c(1,9,45,3),c(2,76,4,2), c(34,7,8,1),c(2,6,1,9)) combs =