Thanks everyone! I finally got some code to work (thanks to William Dunlap). -- View this message in context: http://r.789695.n4.nabble.com/matched-pairs-tp3687506p3687864.html Sent from the R help mailing list archive at Nabble.com.