Re: [R] Getting the groupmean for each person

About this list Date view Thread view Subject view Author view Attachment view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Mon 10 May 2004 - 23:59:48 EST


Message-id: <Pine.A41.4.58.0405100658170.93038@homer40.u.washington.edu>

On Mon, 10 May 2004, Christophe Pallier wrote:
>
> The use of tapply(x,f,mean)[match(f,unique(f))] assumes a particular
> order in the result of tapply, no? It seems a bit dangerous to me.
>

My original code for the group means problem used rowsum(,reorder=FALSE)
rather than tapply(), and we do know that this produces the same order as
unique().

        -thomas

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST