I have a vector of characters and I want to search for everytime "RR" appears, and replace by "" empty space. But I can´t miss the "ANRR". I was wondering something like:
gsub("RR|!ANRR", "",charvector$vector)
But it doesn´t work. I was wondering how to include "OR" and "NOT" in the same expression?