Thank you very much both of you. I will check and post back later if needed. Best Regards Alex -- View this message in context: http://r.789695.n4.nabble.com/Make-a-loop-more-efficient-tp2955912p2964346.html Sent from the R help mailing list archive at Nabble.com.