Skip to content
Prev 277489 / 398506 Next

using tapply() with the quantile function?

There's a slight variant that might be even more helpful if you need
to line the data up with how you started: ave(). I'll let you work out
the details, but the key difference is that it returns a vector that
has the 90th percentile for each group, each time that group appears,
instead of the summary table that you'd get from tapply()

Michael

On Tue, Nov 15, 2011 at 3:52 PM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote: