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
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
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
3 matches
Mail list logo