[R] problem in tapply command

Riley, Steve Steve.Riley at pfizer.com
Tue Apr 24 12:50:22 CEST 2007


Ahmet,

Try the following syntax: tapply(slp_jeo2$slp,slp_jeo2$jeo,mean, na.rm =
T)

Steve

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of temiz
Sent: Tuesday, April 24, 2007 1:22 PM
To: r-help at stat.math.ethz.ch
Subject: [R] problem in tapply command

hello

when I entered following command, I got NA values for some catagories.

 > tapply(slp_jeo2$slp,slp_jeo2$jeo,mean )
              999       Ca      Cka      DCy       Jh      JKi       Kk
14.06665       NA 14.60445       NA       NA       NA       NA       NA
     KTa     KTac       Ku      Kua      Kus       Ky      Kyk      ODe
      NA       NA       NA       NA       NA       NA       NA 17.87489
    PTRc       Qa       Tc    Tkisd
      NA       NA       NA 19.64067


how can I correct this problem ?

regards

-- 
Ahmet Temiz


-- 
This message has been scanned for viruses and\ dangerous\ co...{{dropped}}



More information about the R-help mailing list