Very Nice! Thanks a lot! Btw, I think "match" function should also do the work for the last two steps. :) -- View this message in context: http://r.789695.n4.nabble.com/Help-Using-vectorization-method-for-vectors-comparision-tp3004952p3005032.html Sent from the R help mailing list archive at Nabble.com.