Skip to content
Prev 164636 / 398506 Next

aggregate and median

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