📜  r - 删除 na - R 编程语言代码示例

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

代码示例2
df <- data.frame(x = c(1, 2, 3), y = c(0, 10, NA), z=c(NA, 33, 22))
subset(df, !is.na(y))