That's great - thanks all for your help.-- View this message in context: http://r.789695.n4.nabble.com/Sorting-dataframe-by-number-of-occurrences-of-factor-tp3485443p3488978.html Sent from the R help mailing list archive at Nabble.com.