Re: [R] use of aggregate

From: Erik Iverson <>
Date: Thu, 10 Jun 2010 14:32:30 -0500

Philip wrote:
> Dear list,
> Is it possible to replace the median in the following code so as to calculate 5 and 95% tiles?
> with( raunheim, aggregate(no, by = list(wd,hr), FUN = "median", na.rm=TRUE) )

Please give reproducible examples that we can run by cutting and pasting!

You should just give the function "quantile" to aggregate's FUN argument, instead of "median", and then pass on further parameters just as na.rm is passed to median. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 10 Jun 2010 - 19:34:42 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 Thu 10 Jun 2010 - 20:31:39 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive