Re: [R] matched pairs

2011-07-23 Thread Ellen S.
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. __ R-help@r-projec

[R] matched pairs

2011-07-22 Thread Ellen S.
Hi all, I am hoping to keep certain rows of my data set. These are rows whose value in column X is equal to the value in column X for another row. For example: 1 1 2 1 3 2 4 3 5 4 6 4 >From this I would want the following: 1 1 2 1 5 4 6 4 I am struggling with the for loop. Here is wh