问题描述
|
这个问题已经在这里有了答案:
解决方法
dat <- data.frame(x1 = c(1,2,3,NA,5),x2 = c(100,300,400,500))
na.omit(dat)
x1 x2
1 1 100
3 3 300
5 5 500