[R] aggregate and median

t.raff at med2.uni-kiel.de t.raff at med2.uni-kiel.de
Fri Dec 12 23:13:38 CET 2008


Hello R-experts,

I have a simple question: how do I aggregate data using the median
function with na.rm = TRUE, i.e.

aggregate(x, list(x$y, x$z), FUN = '????')

I have tried 'median(x, na.rm = TRUE)' but that doesn't help.

Any suggestions are very much appreciated,


Thorsten



More information about the R-help mailing list