Ahmet,

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

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of temiz
Sent: Tuesday, April 24, 2007 1:22 PM
To: r-help@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}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to