UPD: there should be 2 instead of 4 in the resulted table and chr2 line should be included. The problem has been solved with plyr library. Thanks -- View this message in context: http://r.789695.n4.nabble.com/comparing-two-tables-tp3936306p4668298.html Sent from the R help mailing list archive at Nabble.com.