[R] The "median" function in R does not work properly.

Duncan Murdoch dmurdoch at pair.com
Thu Jun 24 22:34:10 CEST 2004

Oops, missed something below:

On Thu, 24 Jun 2004 13:23:22 -0700, "Alexi Zubiria"
<alexi at silicongenetics.com> wrote :

>1.) The "median" function does not work well.  

It works fine for me.  You were trying to take the median of a list.
It only knows how to take the median of a vector of numbers.

Use as.matrix(dataf [,2:9]) not dataf [2:9] to get a numeric matrix
(which is a vector of numbers).

Duncan Murdoch

More information about the R-help mailing list