Thanks for saying. :) This morning I tried out some things with this code, and different variants with it. Works nice. -- View this message in context: http://r.789695.n4.nabble.com/How-to-take-ID-of-number-7-tp4577998p4580364.html Sent from the R help mailing list archive at Nabble.com.