Re: [R] sorting in 'merge'

2008-01-21 Thread Peter Dalgaard
jiho wrote: > [...snip...] > the result is still somehow sorted according to the order of b. I > would have expected the output to be: > > merge(b,a,sort=F) >field1 field2 var2 var1 > 1 2 1 0.2739025 0.5134574 > 2 2 2 0.5147113 0.8063110 > 3 1 2 0

[R] sorting in 'merge'

2008-01-21 Thread jiho
Hello everyone, I've been advised to use merge to extract information from two data.frames with a number of common columns, but I cannot get a grasp on how it sorts the result. With sort=FALSE, I would expect it to give the result back sorted exactly as the input was but it seems it is not