On 07 Jun 2005 12:18:06 +0200, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Denis Chabot <[EMAIL PROTECTED]> 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. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
