我有这个数据框1
数据帧2
我想从数据框1中删除整行,并在数据框2中删除批次编号
最终表应如下所示:
答案 0 :(得分:2)
使用 @Override
@Bean(name = BeanNames.COUCHBASE_CLUSTER_INFO)
public ClusterInfo couchbaseClusterInfo() throws Exception {
return couchbaseCluster().authenticate("admin","password").clusterManager().info();
}
,它基本上仅将anti_join
中的行保留在df1
中:
df2
数据:
library(dplpyr)
df1 %>%
anti_join(df2, by = "BatchNo.")
# Joining, by = "BatchNo." # be sure that "BatchNo." is spelled the same
# Month Place BatchNo. Passed
# 1 MAR CAN 14824 N
# 2 OCT GER 15842 Y
# 3 JUL POR 13654 N