I would like to remove the word "amp" in the below sentence.
original:
x <- 'come on ***amp*** this just encourages the already rampant mispronunciation of phuket'
What I want:
x <- 'come on this just encourages the already rampant mispronunciation of phuket'
However, if I used gsub
, the "amp" in the word of "rampant" will be removed as well which is NOT the case I want. Can I know what function should I use in this case?
> gsub("amp","", x)
[1] "come on this just encourages the already rant mispronunciation of phuket"