Re: [R] Matrix addition function

2009-08-13 Thread Vitalie S.
On Thu, 13 Aug 2009 15:11:03 +0200, Michael Knudsen wrote: On Thu, Aug 13, 2009 at 11:35 AM, Lina Rusyte wrote: Hi Lina, What function can I use for matrices addition? I couldn’t find any information about it in the manual or in the internet. (A+B suits, when the number of matrixes is s

Re: [R] Matrix addition function

2009-08-13 Thread Gabor Grothendieck
If A, B and C are matrices then: L <- list(A, B, C) Reduce("+", L) On Thu, Aug 13, 2009 at 5:35 AM, Lina Rusyte wrote: > Hello, > > What function can I use for matrices addition? I couldn’t find any > information about it in the manual or in the internet. > (A+B suits, when the number of matrix

Re: [R] Matrix addition function

2009-08-13 Thread Michael Knudsen
On Thu, Aug 13, 2009 at 11:35 AM, Lina Rusyte wrote: Hi Lina, > What function can I use for matrices addition? I couldn’t find any > information about it in the manual or in the internet. > (A+B suits, when the number of matrixes is small, function sum() doesn’t suit > for matrices addition, be

[R] Matrix addition function

2009-08-13 Thread Lina Rusyte
Hello,   What function can I use for matrices addition? I couldn’t find any information about it in the manual or in the internet. (A+B suits, when the number of matrixes is small, function sum() doesn’t suit for matrices addition, because it sums all variables in the matrices and produces

[R] Matrix addition and multiplication

2009-08-10 Thread Marlin Keith Cox
I posted this earlier, but am not certain that it was in fact posted, so I will try again. Hi, I have an equation Xcp and would like to look at errors affecting it. I am applying errors of -.58 to .1 to R and -.45 to .47 to Xc. I would like to look at all combinations. I set up a matrix functio

[R] Matrix addition

2008-02-19 Thread Marlin Keith Cox
Matt, I know you are probably busy with work, but I cannot help buy asking you these R questions. If it is bothersome, please let me know and I will stick with the R help... but I have two matrices X [,1] [,2] [,3] [,4] [,5] [,6] [1,] 660 693.00 726.0 759.00 792.0 825.00 [2,] 548