Replace all particular values in a data frame January 2, 2023 by Tarik Like this: > df[df==""]<-NA > df A B 1 <NA> 12 2 xyz <NA> 3 jkl 100