[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

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

2013-09-24 Thread arun
-project.org r-help@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 expression matrix (ME) of the same

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

2013-09-24 Thread Berend Hasselman
ME[indx1]- pmax(Mx[indx1],My[indx1]) Berend ME A.K. - Original Message - From: JiangZhengyu zhyjiang2...@hotmail.com To: r-help@r-project.org r-help@r-project.org Cc: Sent: Tuesday, September 24, 2013 10:07 AM Subject: [R] Help: calculations based on three matrices