Find values in data frame that don’t contain specific string and replace them in R
Is there an elegant way to find values that don’t contain specific strings/characters and replace them in R. I kinda want the oppositestr_replace_all
, where instead of replacing the desired pattern I keep it and replace everything else.