[R] average of y at each level of x?

Bill Simpson William.Simpson at drdc-rddc.gc.ca
Fri Nov 7 16:25:23 CET 2003


one way that works is:

 sapply(split(y,x), mean)



Bill




More information about the R-help mailing list