[R] Question about manipulating quartiles
ajayshah at mayin.org
Sat Jul 31 09:13:28 CEST 2004
I know the `quantcut' function in the gregmisc package, and using it,
I'm able to use functions like aggregate to compute the mean or sd()
in each quartile.
What if I have a data frame containing x and y, and I want to make
quartiles by x, but then compute sum x / sum y in each quartile?
How does one persuade aggregate to do this?
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
More information about the R-help