Re: [R] Question about many-to-one merge

2010-01-20 Thread hongwei
btw, the re-order and swap make it much clearer, so thanks again! -- View this message in context: http://n4.nabble.com/Question-about-many-to-one-merge-tp1018811p1037860.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

Re: [R] Question about many-to-one merge

2010-01-20 Thread hongwei
Oh, yes, my bad. Merge works! I guess the reordering automatically made by Merge made me confused. I wrote my code using Merge several months ago, and just didn't feel it right today. Thanks anyway! -- View this message in context: http://n4.nabble.com/Question-about-many-to-one-merge-tp101881

Re: [R] Question about many-to-one merge

2010-01-20 Thread David Winsemius
On Jan 20, 2010, at 5:37 PM, hongwei wrote: I have spent a whole afternoon searching for the solution, but got nothing so far. It should be a simple problem. I have two datasets to merge. The first one just contains two ID columns and it looks like: FromID ToID 1 2 1

Re: [R] Question about many-to-one merge

2010-01-20 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of hongwei > Sent: Wednesday, January 20, 2010 2:38 PM > To: r-help@r-project.org > Subject: [R] Question about many-to-one merge > > > I have spent a whole afternoon searching for