cecilialee
3/14/2018 - 8:06 AM

Convert blanks to NA in dataframe in R

Convert blanks to NA in dataframe in R. #r

x <- data.frame(1, "", 5)
x[x == ""] <- NA
x