Hello again, I have few many string elements, and some of those elements contain a special phrase as '"[NA]NA%", which I planned to replace by some Blank. So I tried with below code in R
> gsub("[NA]NA%", "", "[NA]NA%abcde") [1] "[NA]NA%abcde" It appears that, my code could not replace "[NA]NA%" as I wanted to see "abcde". Can you please help me with what would be the correct code for doing so. Thanks in advance ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.