[R] Calculating the average after adding 3 matrices
Sarah Goslee
sarah.goslee at gmail.com
Sat Oct 3 18:31:01 CEST 2009
Well, yes: add them up and divide by 3.
What did you try that didn't work?
Sarah
On Sat, Oct 3, 2009 at 12:06 PM, ANJAN PURKAYASTHA
<anjan.purkayastha at gmail.com> wrote:
> Hi all,
> Here is my problem:
> I have 3 matrices , A, B, C.
> Each is an nXn matrix.
> I need to create matrix D such that : D[i,j]= (A[i,j]+B[i,j]+C[i,j])/3.
> Being a newbie this is proving to be a challenge.
> Any ideas on how best to accomplish this?
> Thanks!
> Anjan
>
>
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list