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

2004-06-24 Thread Sundar Dorai-Raj
Alexi Zubiria wrote: Hi, 1.) The "median" function does not work well. Please refer to the data below (same data is attached as txt-delimited). This is what I try to do in R: median ( dataf [2:9] ) I get warning: "needs numeric data" 2.) BUT if apply the median to a single vect

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

2004-06-24 Thread Duncan Murdoch
Oops, missed something below: On Thu, 24 Jun 2004 13:23:22 -0700, "Alexi Zubiria" <[EMAIL PROTECTED]> 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 of num

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

2004-06-24 Thread Duncan Murdoch
On Thu, 24 Jun 2004 13:23:22 -0700, "Alexi Zubiria" <[EMAIL PROTECTED]> 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

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

2004-06-24 Thread Alexi Zubiria
Hi, 1.) The "median" function does not work well. Please refer to the data below (same data is attached as txt-delimited). This is what I try to do in R: median ( dataf [2:9] ) I get warning: "needs numeric data" 2.) BUT if apply the median to a single vector: median ( da