📜  用 na 替换字符 - R 编程语言代码示例

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

代码示例1
# dplyr has the na_if() function 
library(dplyr)
x = c("a", "b", "c", "d")
na_if(x = x, y = "b") # replace "b" with NA