Displaying 1 result from an estimated 1 matches for "antq".
Did you mean:
anti
2010 Jan 27
2
Merge: sort=F not preserving order?
...ve the following data1 (index are chars):
?? ?index
1 ?008823
2 ?012689
3 ?004503
4 ?002991
5 ?012689
6 ?002845
7 ?012689
8 ?012395
9 ?012689
10 009302
11 002845
12 006669
13 008823
14 009302
15 025340
16 012689
and data2 in this format (index2 are chars):
?? ? ? index2 ? ? ?tic
1 ? ? 001003 ? ? ANTQ
2 ? ? 001004 ? ? AIR
3 ? ? 001009 ? ? ABSI
4 ? ? 001011 ? ? ACSE
etc
I am attempting to merge them using the following:
mergeddata <- merge(data1,data2, by.x="index", by.y="index2", sort=FALSE)
I want to preserve the order of data1 by setting sort=FALSE, however
the output...