[R] problem in tapply command
Dimitris Rizopoulos
dimitris.rizopoulos at med.kuleuven.be
Tue Apr 24 13:03:36 CEST 2007
probably you're looking for
tapply(slp_jeo2$slp, slp_jeo2$jeo, mean, na.rm = TRUE)
Best,
Dimitris
----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
----- Original Message -----
From: "temiz" <temiz at deprem.gov.tr>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, April 24, 2007 7:21 PM
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
> con...{{dropped}}
>
> ______________________________________________
> R-help at 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.
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the R-help
mailing list