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

Duncan Murdoch dmurdoch at pair.com
Thu Jun 24 22:30:38 CEST 2004


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

>Hi, 
>
> 
>
>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.

Use dataf [,2:9] not dataf [2:9] to get a vector.

Duncan Murdoch




More information about the R-help mailing list