确定观察重叠
我想确定DF1中的观察结果是否在DF2中。如果不是,我想查看不在DF2中的ID。
df1
id
1
2
3
4
df2
1
4
我正在寻找的输出是:
id
2
3
我尝试为此使用Tidyverse,但我没有成功。有人可以帮忙吗?
I want to determine whether the observations in df1 are in df2. If they are not, I would like to see the ids that are not in df2.
df1
id
1
2
3
4
df2
1
4
The output I am looking for is:
id
2
3
I tried using tidyverse for this, but I was not successful. Can someone please help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
anti_join
:Use
anti_join
: