Hi,

I have tuples of data in rows of a data.frame, each column is a variable 
for the 'items' (one per row).

One of the variables is the 'size' of the item (row).

I would like to cut my data.frame into groups such that each group has 
the same *total size*. So, assuming that we order by size, some groups 
should have several small items while other groups have a few large 
items. All the groups should have approximately the same total size.

I have tried various combinations of cut, quantile, and ecdf, and I just 
can't work out how to do this!

Any help is greatly appreciated!

All the best,
Dan.

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

Reply via email to