[R] [solved] sapply and median, possible or not ?

From: Ptit_Bleu <ptit_bleu_at_yahoo.fr>
Date: Fri, 07 Nov 2008 04:28:32 -0800 (PST)

Thanks a lot Keith : your function does the job (but I don't understand the trick) !
Have a nice week-end (Thanks to you, I can have a good one :-)), Ptit Bleu.

median.data.frame <- function(x, ...)
sapply(x, median, ...)

I haven't tried it, but it might work


Keith J

View this message in context: http://www.nabble.com/sapply-and-median%2C-possible-or-not---tp20378222p20379667.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 07 Nov 2008 - 12:32:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Nov 2008 - 13:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive