Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

replace character with na r

# dplyr has the na_if() function 
library(dplyr)
x = c("a", "b", "c", "d")
na_if(x = x, y = "b") # replace "b" with NA
 
PREVIOUS NEXT
Tagged: #replace #character #na
ADD COMMENT
Topic
Name
6+5 =