[R] NAs
Jim Lemon
bitwrit at ozemail.com.au
Wed Sep 13 12:40:13 CEST 2000
Pesl Thomas wrote:
>...Is there a possibility (other than reducing every single column with
>na.omit()) to deal with this.
Have you tried:
apply(x,2,mean,na.rm=T)
?
Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list