thanks a lot to u guys ! both works well! -- View this message in context: http://r.789695.n4.nabble.com/help-warning-only-the-first-element-has-been-used-tp3505837p3506459.html Sent from the R help mailing list archive at Nabble.com.