Re: [R] Help: calculations based on three matrices

2013-09-24 Thread Berend Hasselman
x) > I would do this to avoid the apply ME[indx1]<- pmax(Mx[indx1],My[indx1]) Berend > ME > A.K. > > > > > - Original Message - > From: JiangZhengyu > To: "r-help@r-project.org" > Cc: > Sent: Tuesday, September 24, 2013 10:07 AM

Re: [R] Help: calculations based on three matrices

2013-09-24 Thread arun
lp@r-project.org" Cc: Sent: Tuesday, September 24, 2013 10:07 AM Subject: [R] Help: calculations based on three matrices Dear R experts, I have 3 matrices - "Mx", "My" and "geno" that have the same exact dimensions (attached).  I want to calculate a

[R] Help: calculations based on three matrices

2013-09-24 Thread JiangZhengyu
Dear R experts, I have 3 matrices - "Mx", "My" and "geno" that have the same exact dimensions (attached). I want to calculate a expression matrix (ME) of the same dimension as well. It is a little complicated. To calculate and for a specific cell in ME, e.g. ME[2,2], if value of