Re: [R] how to create a variable to rank within subgroups

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 07 Jun 2005 - 22:08:54 EST

On 07 Jun 2005 12:18:06 +0200, Peter Dalgaard <p.dalgaard@biostat.ku.dk> wrote:
> Denis Chabot <chabotd@globetrotter.net> writes:
>
> > Thank you very much Andy, this is exactly what I was looking for. I
> > did not know this function.
>
> It's a horrible misnomer though (ave() is originally for replacing values
> with averages, but obviously has other uses). Any suggestions for a
> better name (or alias).

ave seems to be a generalized projection as ave(y,x,mean) equals fitted(lm(y~x)) and for suitable functions f ave(y,x,f) is idempotent. Not sure if that suggests a name.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 07 22:13:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:26 EST