Skip to content
Back to formatted view

Raw Message

Message-ID: <83371455d67af5bdef27eb76c8a6ccd9.squirrel@webmail.mail.uni-kiel.de>
Date: 2008-12-12T22:13:38Z
From: t.raff at med2.uni-kiel.de
Subject: 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