I am trying to write a code in R to change all "non" word to "none" in a string but I don't want to change any other words, specially I don't want to change "none" to "nonee".
I tried this code:
gsub("non","none", "non none", fixed = TRUE)
but result is:
"none nonee"
Is there anyway to do this using R's gsub?