thanks, is working -- View this message in context: http://r.789695.n4.nabble.com/copy-the-columns-based-on-the-code-tp4505253p4506128.html Sent from the R help mailing list archive at Nabble.com.