[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

Re: [R] Matrix addition function

2009-08-13 Thread Michael Knudsen
On Thu, Aug 13, 2009 at 11:35 AM, Lina Rusyteliner...@yahoo.co.uk 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

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 Rusyteliner...@yahoo.co.uk 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

Re: [R] Matrix addition function

2009-08-13 Thread Vitalie S.
On Thu, 13 Aug 2009 15:11:03 +0200, Michael Knudsen micknud...@gmail.com wrote: On Thu, Aug 13, 2009 at 11:35 AM, Lina Rusyteliner...@yahoo.co.uk 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.