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 = combn(1:length

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)) v3<-matrix(c

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

2009-09-21 Thread Bryan Keller
ty of Wisconsin - Madison - Original Message - From: Moreno Mancosu Date: Monday, September 21, 2009 9:21 am Subject: [R] Combine vectors in order to form matrixes with combn To: r-help@r-project.org > Hello! > > I've a problem with the combn function and a set of vector. I >

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

2009-09-21 Thread Moreno Mancosu
Hello! I've a problem with the combn function and a set of vector. I would like to make a simple combination where, instead of scalars, i would like to combine vector, in order to form matrixes. In other words, i have nineteen 6-items vectors (for example coef1-coef19), that i would like to co