Thank you, Works perfectly. When the column sector, is the value of lines in the example has six sectors -- View this message in context: http://r.789695.n4.nabble.com/R-extract-parts-tp4509042p4511689.html Sent from the R help mailing list archive at Nabble.com.