Re: [R] group means: split and unsplit

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 25 Jun 2005 - 18:01:56 EST

"Liaw, Andy" <andy_liaw@merck.com> writes:

> I didn't quite understand what you were looking for, but you may want to
> check out ave()...

...which is implemented as split-lapply-unsplit (OK, "split<-").  

> Andy
>
> > From: Thomas Davidoff
> >
> > Took me a while but I figured out how to put in common values of
> > group means/counts, etc. to do the same thing as egen. lapply with
> > split and then unsplit.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
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 Sat Jun 25 18:09:28 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:02 EST