cutEq returns an ordered factor.
reorderByFreq returns a factor with the same values as its
input, but with levels reordered.
Details
cutEq is similar to cut but divides into roughly
equally-sized groups, rather than dividing into bins of equal width.
reorderByFreq orders levels of a factor by their frequency.
It is basically reorder(x, x, length), but reversed.