Hi, thanks for all of your answers! Great solutions for my problem :) Best, syrvn -- View this message in context: http://r.789695.n4.nabble.com/Create-order-of-numbers-based-on-a-given-vector-tp3901158p3901292.html Sent from the R help mailing list archive at Nabble.com.