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] Solutions of equation systems

2009-08-16 Thread Moreno Mancosu
Ravi Varadhan wrote: [cut] It seems to work! Thanks a lot Ravi and Berend. Moreno. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] Solutions of equation systems

2009-08-15 Thread Moreno Mancosu
Greg Snow wrote: ?solve Dear Greg, I tried to use function solve, but I have some problems with it. Let's try with a simple equation: x + 3y -2z = 5 3x + 5y + 6z =7 a-matrix(c(1,3,-2,3,5,6),nrow=2,ncol=3) a [,1] [,2] [,3] [1,]1 -25 [2,]336

Re: [R] Solutions of equation systems

2009-08-14 Thread Moreno Mancosu
Moshe Olshansky wrote: Is your system of equations linear? dear sir, Yes, the system is linear. It can have this form: a x + b y + c z = d e x + f y + g z = h But it can be more complex. I would like to calculate in R the solutions under the form of equation of x,y and z. Any idea?

[R] Solutions of equation systems

2009-08-13 Thread Moreno Mancosu
Hello all! Maybe it's a newbie question(in fact I _am_, a newbie), but I hope you'll find the solution. I have an equation system which has k equation and n variables (kn). I would like to obtain a description of the solutions (which can be the equation of lines or a plane, or everything