search for: big_20

Displaying 1 result from an estimated 1 matches for "big_20".

2011 Feb 03
2
Sorting a Data Frame by hybrid string / number key
Hi, I'm trying to present a table of some experimental data, and I want to order the rows by the instance names. The issue I've got is that there are a variety of conventions for the instance names (e.g. competition01, competition13, small_1, big_20, med_9). What I want to be able to sort them first in category order so: competition < small < med < big, and then perform the secondary ordering by the final one or two digits. I've used Hadley Wickham's StringR package to split the names into the string and numeric sections so...