Thank you. I put table(factor(x.sub$RES_ID)) and works. -- View this message in context: http://r.789695.n4.nabble.com/Subset-problem-tp4452837p4452954.html Sent from the R help mailing list archive at Nabble.com.