【发布时间】:2014-09-24 08:20:00
【问题描述】:
我有两个数据框,
A(514 rows)
1 2
2 3
4 5
1 3
5 6
...
B(696 rows)
1 2
3 4
4 5
1 3
5 7
5 6
.....
我想获取 B 中存在但 A 中不存在的那些行及其对应的列。 例如,结果将是,
3 4
5 7
如何在 R 中做到这一点?
我尝试使用这个帖子的答案:Compare two data.frames to find the rows in data.frame 1 that are not present in data.frame 2
但是在这里,第一个答案差异没有给出正确的输出。
【问题讨论】:
-
有点不清楚。您想要 B 中的匹配列,而不是 A 中的行吗?
标签: r