Skip to content
Prev 221679 / 398500 Next

sort a data.frame

But you should both be warned that would only be correct for a species  
where there were 24  chromosomes. This would work for humans and  
species with a higher number:

dd[ order(as.numeric(substring(dd$b, 4), substring(dd$b, 4))), ]