📜  r 按两列合并 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.159000             🧑  作者: Mango

代码示例3
x <- data.frame(k1=c(NA,NA,3,4,5), k2=c(1,NA,NA,4,5), data=1:5)
y <- data.frame(k1=c(NA,2,NA,4,5), k2=c(NA,NA,3,4,5), data=1:5)
merge(x, y, by=c("k1","k2"))