[R] group means: split and unsplit

Liaw, Andy andy_liaw at merck.com
Sat Jun 25 04:25:27 CEST 2005


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

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.
> Thomas Davidoff
> Assistant Professor
> Haas School of Business
> UC Berkeley
> Berkeley, CA 94720
> phone:     (510) 643-1425
> fax:        (510) 643-7357
> davidoff at haas.berkeley.edu
> http://faculty.haas.berkeley.edu/davidoff
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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
> 
> 
>




More information about the R-help mailing list